Files
BingoGrassland/Assets/MYp0ZVTT2QSDK/ThirdParty/com.unity.mobile.notifications@2.3.2/Runtime/Android/AndroidNotificationIntentData.cs
T
changyunjiaandchangyunjia c28ea8ea4a 提交
2026-06-29 16:21:36 +08:00

44 lines
1.4 KiB
C#
Executable File

using UnityEngine;
namespace Unity.Notifications.Android
{
/// <summary>
/// Wrapper for the AndroidNotification. Contains the notification's id and channel.
/// </summary>
public class AndroidNotificationIntentData
{
/// <summary>
/// The id of the notification.
/// </summary>
public int Id { get; }
/// <summary>
/// The channel id that the notification was sent to.
/// </summary>
public string Channel { get; }
/// <summary>
/// Returns the AndroidNotification.
/// </summary>
public AndroidNotification Notification { get; }
/// <summary>
/// Returns the proxy to the Android Java instance of Notification class.
/// </summary>
public AndroidJavaObject NativeNotification { get; internal set; }
/// <summary>
/// Create an AndroidNotificationIntentData with AndroidNotification, id, and channel id.
/// </summary>
/// <param name="id">Notification id</param>
/// <param name="channelId">ID of the notification channel</param>
/// <param name="notification">Data of the received notification</param>
public AndroidNotificationIntentData(int id, string channelId, AndroidNotification notification)
{
Id = id;
Channel = channelId;
Notification = notification;
}
}
}