Beamable SDK
|
Interface for local notification relay. See AppleLocalNotificationRelay and GoogleLocalNotificationRelay for concrete implementations. More...
Public Member Functions | |
void | CreateNotificationChannel (string id, string name, string description) |
Create a notification channel. More... | |
void | ScheduleNotification (string channel, string key, string title, string message, DateTime when, Dictionary< string, string > data) |
Schedule a local notification for the future. More... | |
void | CancelNotification (string key) |
Cancel a specific notification. More... | |
void | ClearDeliveredNotifications () |
Interface for local notification relay. See AppleLocalNotificationRelay and GoogleLocalNotificationRelay for concrete implementations.
void Beamable.Api.Notification.Internal.ILocalNotificationRelay.CancelNotification | ( | string | key | ) |
Cancel a specific notification.
key | Key for identifying which notification to cancel, like "DBCONSOLE" or "BUILD_TIMER". |
Implemented in Beamable.Api.Notification.Internal.DummyLocalNotificationRelay, and Beamable.Api.Notification.Internal.GoogleLocalNotificationRelay.
void Beamable.Api.Notification.Internal.ILocalNotificationRelay.CreateNotificationChannel | ( | string | id, |
string | name, | ||
string | description | ||
) |
Create a notification channel.
id | Identifier of the channel (Android) or category (iOS) of the notification. |
name | User facing name for this channel. |
description | User facing description for this channel. |
Implemented in Beamable.Api.Notification.Internal.DummyLocalNotificationRelay, and Beamable.Api.Notification.Internal.GoogleLocalNotificationRelay.
void Beamable.Api.Notification.Internal.ILocalNotificationRelay.ScheduleNotification | ( | string | channel, |
string | key, | ||
string | title, | ||
string | message, | ||
DateTime | when, | ||
Dictionary< string, string > | data | ||
) |
Schedule a local notification for the future.
channel | Identifier of the channel (Android) or category (iOS) of the notification. |
key | Arbitrary string key that can be used for cancelling the notification. |
title | Title text of the notification. |
message | Body text of the notification. |
when | Time when the notification should arrive. This should be a future timestamp. |
data | Arbitrary key/value data to attach to the notification. |
Implemented in Beamable.Api.Notification.Internal.DummyLocalNotificationRelay, and Beamable.Api.Notification.Internal.GoogleLocalNotificationRelay.