Device
Wisej.Web.Ext.MobileIntegration.Device
Last updated
Wisej.Web.Ext.MobileIntegration.Device
Last updated
Namespace: Wisej.Web.Ext.MobileIntegration
Assembly: Wisej.Web.Ext.MobileIntegration (2.5.0.0)
Represents the user's mobile device. The Wisej application interacts with the device through this class.
Boolean: Checks if the UserData dynamic object was created and has any value.
DeviceInfo: Returns the DeviceInfo object containing information related to the user's mobile device.
DeviceScreen: Returns the DeviceScreen object containing the information related to the mobile device's screen.
DeviceStatusbar: Returns the DeviceStatusbar object representing the statusbar on the mobile device.
DeviceTabBar: Returns the DeviceTabBar object representing the tabBar on the mobile device.
DeviceToolbar: Returns the DeviceToolbar object representing the toolbar on the mobile device.
UserDataDictionary<String, Object>: Returns a dynamic object that can be used to store custom data in relation to the device. The data is persistent and can be accessed across different applications.
The data is serialized and deserialized using JSONConvert before and after retrieval from the device.
Boolean: Verifies that the application is running inside the mobile container.
Asks the device to authenticate the user using biometrics if available, or the device's passcode.
Throws:
DeviceException Occurs when the device did not successfully authenticate the user. See ErrorCode and Reason.
Posts a message to the device.
Posts a message to the device and enters the modal state waiting for the response.
Returns: DeviceResponse. The response from the device.
Requests the specified permission from the device if access hasn't already been granted.
Returns: Boolean.
Throws:
DeviceException Occurs when the permission could not be requested. See ErrorCode and Reason.
Specifies the background color of the device frame.
Triggers notification feedback on the device.
DeviceEventHandler Fired when there's an update from the device's accelerometers.
DeviceEventHandler Fired when the back button is pressed on the device (Android only).
EventHandler Fired when the mobile application is sent to the background.
DeviceEventHandler Fired when the brightness of the device's screen changes.
DeviceEventHandler Fired when the device sends an event back to the application.
EventHandler Fired when the mobile application is brought to the foreground.
DeviceEventHandler Fired when there's an update from the device's gyroscope.
DeviceEventHandler Fired when there's an update from the device's magnetometer.
DeviceEventHandler Fired when a screen gets removed from the device
DeviceEventHandler Fired when the orientation of the device changes.
DeviceEventHandler Fired when a device permission value changes.
DeviceEventHandler Fired when the device receives a push notification.
DeviceEventHandler Fired when the device gets attached to a new screen
DeviceEventHandler Fired when a screen gets removed from the device
DeviceEventHandler Fired when the selected color of a ColorPicker window changes.
DeviceEventHandler Fired when the device is shaken.
DeviceEventHandler Fired when the device subscribes to remote notifications and receives a remote token
EventHandler Fired when the mobile application is terminated.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
message
The reason for authenticating.
command
The command to post to the device, i.e., "action.prompt".
args
The arguments to pass with the command.
command
The command to post to the device, i.e., "action.prompt".
args
The arguments to pass with the command.
permission
The permission to request.
value
type
The type of feedback to post to the device.