public class DisplayOrientationListenerImpl extends BaseListenerImpl implements IDisplayOrientationListener
| Constructor and Description |
|---|
DisplayOrientationListenerImpl(long id)
Constructor with listener id.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onError(IDisplayOrientationListenerError error)
Although extremely unlikely, this event will be fired if something beyond the control of the
platform impedes the rotation of the display.
|
void |
onResult(RotationEvent rotationEvent)
Event fired with the successful start and finish of a rotation.
|
void |
onWarning(RotationEvent rotationEvent,
IDisplayOrientationListenerWarning 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 DisplayOrientationListenerImpl(long id)
id - The id of the listener.public void onError(IDisplayOrientationListenerError error)
onError in interface IDisplayOrientationListenererror - The error condition... generally unknown as it is unexpected!public void onResult(RotationEvent rotationEvent)
onResult in interface IDisplayOrientationListenerrotationEvent - RotationEvent containing origin, destination and state of the event.public void onWarning(RotationEvent rotationEvent, IDisplayOrientationListenerWarning warning)
onWarning in interface IDisplayOrientationListenerrotationEvent - RotationEvent containing origin, destination and state of the event.warning - Type of condition that aborted rotation execution.