docs.unity3d.com
    Show / Hide Table of Contents

    Class AndroidNotificationIntentData

    Wrapper for the AndroidNotification. Contains the notification's id and channel.

    Inheritance
    Object
    AndroidNotificationIntentData
    Namespace: Unity.Notifications.Android
    Syntax
    public class AndroidNotificationIntentData

    Constructors

    AndroidNotificationIntentData(Int32, String, AndroidNotification)

    Create an AndroidNotificationIntentData with AndroidNotification, id, and channel id.

    Declaration
    public AndroidNotificationIntentData(int id, string channelId, AndroidNotification notification)
    Parameters
    Type Name Description
    Int32 id

    Notification id

    String channelId

    ID of the notification channel

    AndroidNotification notification

    Data of the received notification

    Properties

    Channel

    The channel id that the notification was sent to.

    Declaration
    public string Channel { get; }
    Property Value
    Type Description
    String

    Id

    The id of the notification.

    Declaration
    public int Id { get; }
    Property Value
    Type Description
    Int32

    NativeNotification

    Returns the proxy to the Android Java instance of Notification class.

    Declaration
    public AndroidJavaObject NativeNotification { get; }
    Property Value
    Type Description
    AndroidJavaObject

    Notification

    Returns the AndroidNotification.

    Declaration
    public AndroidNotification Notification { get; }
    Property Value
    Type Description
    AndroidNotification
    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