class PushNotification
PushNotification
()
|
Signature
constructor() Returns PushNotification |
register
()
|
Register the device to receive push notification. The registered notification id can be fetched by PushNotificationResult.id.
Signature
suspend fun register(): PushNotificationResult Returns PushNotificationResult
The result of the registration.
|
unregister
()
|
Unregister the device from receiving push notifications. Returns a boolean to indicate successful/unsuccessful unregistration.
Signature
suspend fun unregister(): Boolean Returns Boolean
A boolean indicates the result of the unregistration.
|