public interface IDevice extends IBaseSystem
| Modifier and Type | Method and Description |
|---|---|
void |
addButtonListener(IButtonListener listener)
Register a new listener that will receive button events.
|
void |
addDeviceOrientationListener(IDeviceOrientationListener listener)
Add a listener to start receiving device orientation change events.
|
DeviceInfo |
getDeviceInfo()
Returns the device information for the current device executing the runtime.
|
Locale |
getLocaleCurrent()
Gets the current Locale for the device.
|
ICapabilitiesOrientation |
getOrientationCurrent()
Returns the current orientation of the device.
|
void |
removeButtonListener(IButtonListener listener)
De-registers an existing listener from receiving button events.
|
void |
removeButtonListeners()
Removed all existing listeners from receiving button events.
|
void |
removeDeviceOrientationListener(IDeviceOrientationListener listener)
Remove a listener to stop receiving device orientation change events.
|
void |
removeDeviceOrientationListeners()
Remove all listeners receiving device orientation events.
|
getAPIGroup, getAPIVersionvoid addButtonListener(IButtonListener listener)
listener - to be registered.void addDeviceOrientationListener(IDeviceOrientationListener listener)
listener - Listener to add to receive orientation change events.DeviceInfo getDeviceInfo()
Locale getLocaleCurrent()
ICapabilitiesOrientation getOrientationCurrent()
void removeButtonListener(IButtonListener listener)
listener - to be removed.void removeButtonListeners()
void removeDeviceOrientationListener(IDeviceOrientationListener listener)
listener - Listener to remove from receiving orientation change events.void removeDeviceOrientationListeners()