public class DisplayBridge extends BaseSystemBridge implements IDisplay, APIBridge
apiGroup| Constructor and Description |
|---|
DisplayBridge(IDisplay delegate)
Constructor with delegate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDisplayOrientationListener(IDisplayOrientationListener listener)
Add a listener to start receiving display orientation change events.
|
IDisplay |
getDelegate()
Get the delegate implementation.
|
ICapabilitiesOrientation |
getOrientationCurrent()
Returns the current orientation of the display.
|
APIResponse |
invoke(APIRequest request)
Invokes the given method specified in the API request object.
|
void |
removeDisplayOrientationListener(IDisplayOrientationListener listener)
Remove a listener to stop receiving display orientation change events.
|
void |
removeDisplayOrientationListeners()
Remove all listeners receiving display orientation events.
|
void |
setDelegate(IDisplay delegate)
Set the delegate implementation.
|
getAPIGroup, getAPIVersion, getJSONParserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAPIGroup, getAPIVersionpublic DisplayBridge(IDisplay delegate)
delegate - The delegate implementing platform specific functions.public final IDisplay getDelegate()
public final void setDelegate(IDisplay delegate)
delegate - The delegate implementing platform specific functions.public void addDisplayOrientationListener(IDisplayOrientationListener listener)
addDisplayOrientationListener in interface IDisplaylistener - Listener to add to receive orientation change events.public ICapabilitiesOrientation getOrientationCurrent()
getOrientationCurrent in interface IDisplaypublic void removeDisplayOrientationListener(IDisplayOrientationListener listener)
removeDisplayOrientationListener in interface IDisplaylistener - Listener to remove from receiving orientation change events.public void removeDisplayOrientationListeners()
removeDisplayOrientationListeners in interface IDisplaypublic APIResponse invoke(APIRequest request)
invoke in interface APIBridgeinvoke in class BaseSystemBridgerequest - APIRequest object containing method name and parameters.