docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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 are not available in devices API level are ignored. See Android documentation for availibility. https://developer.android.com/reference/android/app/Notification.BigPictureStyle

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)