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.
Structs
Notification
Represents a notification to be sent or a received one. Can be converted to platform specific notification via explicit cast.
var n1 = (AndroidNotification)notification; // convert to Android
var n1 = (iOSNotification)notification; // convert to iOS
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.
Delegates
NotificationCenter.NotificationReceivedCallback
Delegate for OnNotificationReceived.