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