public class CapabilitiesBridge extends BaseSystemBridge implements ICapabilities, APIBridge
apiGroup| Constructor and Description |
|---|
CapabilitiesBridge(ICapabilities delegate)
Constructor with delegate.
|
| Modifier and Type | Method and Description |
|---|---|
ICapabilities |
getDelegate()
Get the delegate implementation.
|
ICapabilitiesOrientation |
getOrientationDefault()
Obtains the default orientation of the device/display.
|
ICapabilitiesOrientation[] |
getOrientationsSupported()
Provides the device/display orientations supported by the platform.
|
boolean |
hasButtonSupport(ICapabilitiesButton type)
Determines whether a specific hardware button is supported for interaction.
|
boolean |
hasCommunicationSupport(ICapabilitiesCommunication type)
Determines whether a specific Communication capability is supported by
the device.
|
boolean |
hasDataSupport(ICapabilitiesData type)
Determines whether a specific Data capability is supported by the device.
|
boolean |
hasMediaSupport(ICapabilitiesMedia type)
Determines whether a specific Media capability is supported by the
device.
|
boolean |
hasNetSupport(ICapabilitiesNet type)
Determines whether a specific Net capability is supported by the device.
|
boolean |
hasNotificationSupport(ICapabilitiesNotification type)
Determines whether a specific Notification capability is supported by the
device.
|
boolean |
hasOrientationSupport(ICapabilitiesOrientation orientation)
Determines whether the device/display supports a given orientation.
|
boolean |
hasSensorSupport(ICapabilitiesSensor type)
Determines whether a specific Sensor capability is supported by the
device.
|
APIResponse |
invoke(APIRequest request)
Invokes the given method specified in the API request object.
|
void |
setDelegate(ICapabilities delegate)
Set the delegate implementation.
|
getAPIGroup, getAPIVersion, getJSONParserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAPIGroup, getAPIVersionpublic CapabilitiesBridge(ICapabilities delegate)
delegate - The delegate implementing platform specific functions.public final ICapabilities getDelegate()
public final void setDelegate(ICapabilities delegate)
delegate - The delegate implementing platform specific functions.public ICapabilitiesOrientation getOrientationDefault()
getOrientationDefault in interface ICapabilitiespublic ICapabilitiesOrientation[] getOrientationsSupported()
getOrientationsSupported in interface ICapabilitiespublic boolean hasButtonSupport(ICapabilitiesButton type)
hasButtonSupport in interface ICapabilitiestype - Type of feature to check.public boolean hasCommunicationSupport(ICapabilitiesCommunication type)
hasCommunicationSupport in interface ICapabilitiestype - Type of feature to check.public boolean hasDataSupport(ICapabilitiesData type)
hasDataSupport in interface ICapabilitiestype - Type of feature to check.public boolean hasMediaSupport(ICapabilitiesMedia type)
hasMediaSupport in interface ICapabilitiestype - Type of feature to check.public boolean hasNetSupport(ICapabilitiesNet type)
hasNetSupport in interface ICapabilitiestype - Type of feature to check.public boolean hasNotificationSupport(ICapabilitiesNotification type)
hasNotificationSupport in interface ICapabilitiestype - Type of feature to check.public boolean hasOrientationSupport(ICapabilitiesOrientation orientation)
hasOrientationSupport in interface ICapabilitiesorientation - Orientation type.public boolean hasSensorSupport(ICapabilitiesSensor type)
hasSensorSupport in interface ICapabilitiestype - Type of feature to check.public APIResponse invoke(APIRequest request)
invoke in interface APIBridgeinvoke in class BaseSystemBridgerequest - APIRequest object containing method name and parameters.