Namespace Unity.Notifications.Android
Classes
AndroidNotificationCenter
Use the AndroidNotificationCenter to register notification channels and schedule local notifications.
AndroidNotificationIntentData
Wrapper for the AndroidNotification. Contains the notification's id and channel.
AndroidReceivedNotificationMainThreadDispatcher
Class that queues the received notifications and triggers the notification callbacks.
PermissionRequest
A class to request permission to post notifications. Before Android 13 (API 33) it is not required and Status will become Allowed immediately. May succeed or fail immediately. Users response is saved to PlayerPrefs. Respects users wish to not be asked again.
Structs
AndroidNotification
The AndroidNotification is used schedule a local notification, which includes the content of the notification.
AndroidNotificationChannel
The wrapper of the Android notification channel. Use this to group notifications by groups.
AndroidNotificationChannelGroup
Notification channel group description. It is optional to put channels into groups, but looks nicer in Settings UI.
BigPictureStyle
Data for setting up the big picture style notification. Properties that aren't available in the device's API level are ignored. Refer to Android documentation to check availability of properties based on each API level.
Enums
GroupAlertBehaviours
Allows applying an alert behaviour to grouped notifications.
Importance
The level of interruption of this notification channel. The importance of a notification is used to determine how much the notification should interrupt the user (visually and audibly). The higher the importance of a notification, the more interruptive the notification will be.
LockScreenVisibility
Determines whether notifications appear on the lock screen.
NotificationStatus
Current status of a scheduled notification, can be queried using CheckScheduledNotificationStatus.
NotificationStyle
Allows applying a rich notification style to a notification.
PermissionStatus
Represents a status of the Android runtime permission.
Delegates
AndroidNotificationCenter.NotificationReceivedCallback
The delegate type for the notification received callbacks. It is used in OnNotificationReceived event.