Errai 3.0.1-SNAPSHOT

org.jboss.errai.orientation.client.local
Interface OrientationDetector

All Known Implementing Classes:
Html5MotionDetector, Html5OrientationDetector, NoMotionDetector, PhoneGapOrientationDetector

public interface OrientationDetector


Nested Class Summary
static class OrientationDetector.OrientationDetectorProvider
           
 
Method Summary
 void fireOrientationEvent(double x, double y, double z)
           
 void setOrientationEventSource(javax.enterprise.event.Event<OrientationEvent> orientationEventSource)
          The provider class that creates the detector calls this method to give us a means of firing the event.
 void startFiringOrientationEvents()
          Starts the periodic firing of CDI OrientationEvents.
 void stopFiringOrientationEvents()
          Stops the periodic firing of CDI OrientationEvents.
 

Method Detail

stopFiringOrientationEvents

void stopFiringOrientationEvents()
Stops the periodic firing of CDI OrientationEvents. If this detector was already in the stopped state, calling this method has no effect.


startFiringOrientationEvents

void startFiringOrientationEvents()
Starts the periodic firing of CDI OrientationEvents. If this detector was already in the started state, calling this method has no effect.


setOrientationEventSource

void setOrientationEventSource(javax.enterprise.event.Event<OrientationEvent> orientationEventSource)
The provider class that creates the detector calls this method to give us a means of firing the event.


fireOrientationEvent

void fireOrientationEvent(double x,
                          double y,
                          double z)

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.