public class DeviceOrientationListenerImpl extends BaseListenerImpl implements IDeviceOrientationListener
| Constructor and Description |
|---|
DeviceOrientationListenerImpl(long id)
Constructor with listener id.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onError(IDeviceOrientationListenerError error)
Although extremely unlikely, this event will be fired if something beyond the control of the
platform impedes the rotation of the device.
|
void |
onResult(RotationEvent rotationEvent)
Event fired with the successful start and finish of a rotation.
|
void |
onWarning(RotationEvent rotationEvent,
IDeviceOrientationListenerWarning warning)
Event fired with a warning when the rotation is aborted.
|
getAPIGroup, getAPIVersion, getId, getJSONParserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdgetAPIGroup, getAPIVersionpublic DeviceOrientationListenerImpl(long id)
id - The id of the listener.public void onError(IDeviceOrientationListenerError error)
onError in interface IDeviceOrientationListenererror - The error condition... generally unknown as it is unexpected!public void onResult(RotationEvent rotationEvent)
onResult in interface IDeviceOrientationListenerrotationEvent - RotationEvent containing origin, destination and state of the event.public void onWarning(RotationEvent rotationEvent, IDeviceOrientationListenerWarning warning)
onWarning in interface IDeviceOrientationListenerrotationEvent - RotationEvent containing origin, destination and state of the event.warning - Type of condition that aborted rotation execution.