Namespace Unity.Notifications
Classes
NotificationCenter
Send, receive and manage notifications. Must be initialized before use. See Initialize(NotificationCenterArgs).
NotificationSettings
Class used to access notification settings for a specific platform.
NotificationSettings.AndroidSettings
Class used to access Android-specific notification settings.
NotificationSettings.iOSSettings
Class used to access iOS-specific notification settings.
NotificationsPermissionRequest
Track the status of notification permission request. Can be returned from coroutine to suspend it until request is either granted or denied. Permission can be granted or denied immediately, if this isn't the first request.
QueryLastRespondedNotificationOp
An operation for retrieving notification used to open the app. When app is not running, app launches first and then notification is delivered. There may be a delay until notification is delivered. This operation may finish immediately or it may require a few frames to pass. You can return it from coroutine to wait until completion.
Structs
Notification
Represents a notification to be sent or a received one.
NotificationCenterArgs
Initialization arguments for NotificationCenter. Recommended to use Default to retrieve recommened default values and then alter it. It is required to manually set AndroidChannelId.
NotificationDateTimeSchedule
Schedule to show notification at particular date and time. Optionally can repeat at predefined intervals.
NotificationIntervalSchedule
Schedule notification to show up after a certain amount of time, optionally repeating at the same time interval.
Interfaces
NotificationSchedule
Marker interface for different schedule types.
Enums
AndroidExactSchedulingOption
Whether to schedule notifications at exact time or approximately (saves power). Exact scheduling is available in Android 6 (API 23) and newer, lower versions always use inexact scheduling. Android 12 (API 31) or newer requires SCHEDULE_EXACT_ALARM permission and grant from user to use exact scheduling. Android 13 (API 33) or newer can use USE_EXACT_ALARM permission to use exactscheduling without requesting users grant.
NotificationIconType
Notification icon type.
NotificationPresentation
Options, specifying how notifications should be presented to the user. These option can be bitwise-ored to combine them.
NotificationRepeatInterval
Interval, at which notification should repeat.
NotificationSettingsSection
The settings section to open, if possible.
NotificationsPermissionStatus
The status of notification permission request.
QueryLastRespondedNotificationState
The state of the query for last responded notification. Returned by State
Delegates
NotificationCenter.NotificationReceivedCallback
Delegate for OnNotificationReceived.