MpnDeviceExt extension

on

Methods

addListener(MpnDeviceListener listener) → void
Adds a listener that will receive events from the MPN device object.
getApplicationId() String
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?
The server-side unique persistent ID of the device.
getDeviceToken() String
The device token of this MPN device.
getListeners() List<MpnDeviceListener>
List containing the MpnDeviceListener instances that were added to this MPN device object.
getPlatform() String
The platform identifier of this MPN device.
getPreviousDeviceToken() String?
The previous device token of this MPN device.
getStatus() String
The status of the device.
getStatusTimestamp() int
The server-side timestamp of the device status.
isRegistered() bool
Checks whether the MPN device object is currently registered on the server or not.
isSuspended() bool
Checks whether the MPN device object is currently suspended on the server or not.
removeListener(MpnDeviceListener listener) → void
Removes a listener from the MPN device object so that it will not receive events anymore.