MpnDeviceExt extension

on

Methods

addListener(MpnDeviceListener listener) → void

Available on MpnDevice, provided by the MpnDeviceExt extension

Adds a listener that will receive events from the MPN device object.
getApplicationId() String

Available on MpnDevice, provided by the MpnDeviceExt extension

The application ID of this MPN device, corresponding to the package name of the application. In the MpnDevice implementation it is determined automatically from the Application Context during creation and is used by the server as part of the device identification.
getDeviceId() String?

Available on MpnDevice, provided by the MpnDeviceExt extension

The server-side unique persistent ID of the device.
getDeviceToken() String

Available on MpnDevice, provided by the MpnDeviceExt extension

The device token of this MPN device.
getListeners() List<MpnDeviceListener>

Available on MpnDevice, provided by the MpnDeviceExt extension

List containing the MpnDeviceListener instances that were added to this MPN device object.
getPlatform() String

Available on MpnDevice, provided by the MpnDeviceExt extension

The platform identifier of this MPN device.
getPreviousDeviceToken() String?

Available on MpnDevice, provided by the MpnDeviceExt extension

The previous device token of this MPN device.
getStatus() String

Available on MpnDevice, provided by the MpnDeviceExt extension

The status of the device.
getStatusTimestamp() int

Available on MpnDevice, provided by the MpnDeviceExt extension

The server-side timestamp of the device status.
isRegistered() bool

Available on MpnDevice, provided by the MpnDeviceExt extension

Checks whether the MPN device object is currently registered on the server or not.
isSuspended() bool

Available on MpnDevice, provided by the MpnDeviceExt extension

Checks whether the MPN device object is currently suspended on the server or not.
removeListener(MpnDeviceListener listener) → void

Available on MpnDevice, provided by the MpnDeviceExt extension

Removes a listener from the MPN device object so that it will not receive events anymore.