public class Html5OrientationDetector extends Object implements OrientationDetector
OrientationDetector.OrientationDetectorProvider
Constructor and Description |
---|
Html5OrientationDetector() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void fireOrientationEvent(double x, double y, double z)
fireOrientationEvent
in interface OrientationDetector
public void stopFiringOrientationEvents()
OrientationDetector
stopFiringOrientationEvents
in interface OrientationDetector
public void startFiringOrientationEvents()
OrientationDetector
startFiringOrientationEvents
in interface OrientationDetector
public void setOrientationEventSource(javax.enterprise.event.Event<OrientationEvent> orientationEventSource)
OrientationDetector
setOrientationEventSource
in interface OrientationDetector
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.