docs.unity3d.com
    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.

    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.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023