Device

Wisej.Web.Ext.MobileIntegration.Device

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.

public class Device : Component

Properties

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.

Methods

Asks the device to authenticate the user using biometrics if available, or the device's passcode.

ParameterTypeDescription

message

The reason for authenticating.

Throws:

Posts a message to the device.

ParameterTypeDescription

command

The command to post to the device, i.e., "action.prompt".

args

The arguments to pass with the command.

Posts a message to the device and enters the modal state waiting for the response.

ParameterTypeDescription

command

The command to post to the device, i.e., "action.prompt".

args

The arguments to pass with the command.

Returns: DeviceResponse. The response from the device.

Requests the specified permission from the device if access hasn't already been granted.

ParameterTypeDescription

permission

The permission to request.

Returns: Boolean.

Throws:

Specifies the background color of the device frame.

ParameterTypeDescription

value

Triggers notification feedback on the device.

ParameterTypeDescription

type

The type of feedback to post to the device.

Events

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.

Last updated