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