API reference

Notifications Class

Modifiers: final
The Notifications class provides a way to manage and display notifications to the user. Notifications can be used to inform the user of important events, such as new messages, friend requests, or updates to installed apps. See more info about Platform Solutions here.

Signature

class Notifications

Constructors

Notifications ()
Signature
constructor()
Returns
Notifications

Methods

deviceNotification ( deviceNotificationConfig )
Triggers a device notification to show the notification toast and feed the notification to notification feed.
This method can return the following status codes: common status codes in NotificationsStatusCode.
Signature
suspend fun deviceNotification(deviceNotificationConfig: DeviceNotificationConfig)
Parameters
deviceNotificationConfig: DeviceNotificationConfig