docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AndroidNotificationIntentData

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

    Inheritance
    object
    AndroidNotificationIntentData
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Notifications.Android
    Assembly: solution.dll
    Syntax
    public class AndroidNotificationIntentData

    Constructors

    AndroidNotificationIntentData(int, string, AndroidNotification)

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

    Declaration
    public AndroidNotificationIntentData(int id, string channelId, AndroidNotification notification)
    Parameters
    Type Name Description
    int 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
    int

    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
    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)