docs.unity3d.com
    Show / Hide Table of Contents

    Class NotificationConsole

    Manages the console on screen that displays information about notifications, and allows you to schedule more.

    Inheritance
    Object
    Object
    Component
    Behaviour
    MonoBehaviour
    NotificationConsole
    Inherited Members
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(String, Single)
    MonoBehaviour.InvokeRepeating(String, Single, Single)
    MonoBehaviour.CancelInvoke(String)
    MonoBehaviour.IsInvoking(String)
    MonoBehaviour.StartCoroutine(String)
    MonoBehaviour.StartCoroutine(String, Object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StartCoroutine_Auto(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(String)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(Object)
    MonoBehaviour.useGUILayout
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, Component)
    Component.TryGetComponent<T>(T)
    Component.GetComponent(String)
    Component.GetComponentInChildren(Type, Boolean)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(Boolean)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, Boolean)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(Boolean)
    Component.GetComponentsInChildren<T>(Boolean, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, Boolean)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(Boolean)
    Component.GetComponentsInParent<T>(Boolean, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.CompareTag(String)
    Component.SendMessageUpwards(String, Object, SendMessageOptions)
    Component.SendMessageUpwards(String, Object)
    Component.SendMessageUpwards(String)
    Component.SendMessageUpwards(String, SendMessageOptions)
    Component.SendMessage(String, Object)
    Component.SendMessage(String)
    Component.SendMessage(String, Object, SendMessageOptions)
    Component.SendMessage(String, SendMessageOptions)
    Component.BroadcastMessage(String, Object, SendMessageOptions)
    Component.BroadcastMessage(String, Object)
    Component.BroadcastMessage(String)
    Component.BroadcastMessage(String, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Component.rigidbody
    Component.rigidbody2D
    Component.camera
    Component.light
    Component.animation
    Component.constantForce
    Component.renderer
    Component.audio
    Component.networkView
    Component.collider
    Component.collider2D
    Component.hingeJoint
    Component.particleSystem
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: NotificationSamples.Demo
    Syntax
    public class NotificationConsole : MonoBehaviour

    Fields

    badgeField

    Declaration
    [SerializeField]
    protected TMP_InputField badgeField
    Field Value
    Type Description
    TMPro.TMP_InputField

    bodyField

    Declaration
    [SerializeField]
    protected TMP_InputField bodyField
    Field Value
    Type Description
    TMPro.TMP_InputField

    ChannelId

    Declaration
    public const string ChannelId = "game_channel0"
    Field Value
    Type Description
    String

    clearEventButton

    Declaration
    [SerializeField]
    protected Button clearEventButton
    Field Value
    Type Description
    UnityEngine.UI.Button

    eventPrefab

    Declaration
    [SerializeField]
    protected NotificationEventItem eventPrefab
    Field Value
    Type Description
    NotificationEventItem

    manager

    Declaration
    [SerializeField]
    protected GameNotificationsManager manager
    Field Value
    Type Description
    GameNotificationsManager

    NewsChannelId

    Declaration
    public const string NewsChannelId = "news_channel2"
    Field Value
    Type Description
    String

    pendingEventParent

    Declaration
    [SerializeField]
    protected Transform pendingEventParent
    Field Value
    Type Description
    Transform

    pendingNotificationPrefab

    Declaration
    [SerializeField]
    protected PendingNotificationItem pendingNotificationPrefab
    Field Value
    Type Description
    PendingNotificationItem

    pendingNotificationsListParent

    Declaration
    [SerializeField]
    protected Transform pendingNotificationsListParent
    Field Value
    Type Description
    Transform

    ReminderChannelId

    Declaration
    public const string ReminderChannelId = "reminder_channel1"
    Field Value
    Type Description
    String

    sendButton

    Declaration
    [SerializeField]
    protected Button sendButton
    Field Value
    Type Description
    UnityEngine.UI.Button

    timeField

    Declaration
    [SerializeField]
    protected TMP_InputField timeField
    Field Value
    Type Description
    TMPro.TMP_InputField

    titleField

    Declaration
    [SerializeField]
    protected TMP_InputField titleField
    Field Value
    Type Description
    TMPro.TMP_InputField

    Methods

    CancelPendingNotificationItem(PendingNotification)

    Cancel a given pending notification

    Declaration
    public void CancelPendingNotificationItem(PendingNotification itemToCancel)
    Parameters
    Type Name Description
    PendingNotification itemToCancel

    SendNotification(String, String, DateTime, Nullable<Int32>, Boolean, String, String, String)

    Queue a notification with the given parameters.

    Declaration
    public void SendNotification(string title, string body, DateTime deliveryTime, int? badgeNumber = null, bool reschedule = false, string channelId = null, string smallIcon = null, string largeIcon = null)
    Parameters
    Type Name Description
    String title

    The title for the notification.

    String body

    The body text for the notification.

    DateTime deliveryTime

    The time to deliver the notification.

    Nullable<Int32> badgeNumber

    The optional badge number to display on the application icon.

    Boolean reschedule

    Whether to reschedule the notification if foregrounding and the notification hasn't yet been shown.

    String channelId

    Channel ID to use. If this is null/empty then it will use the default ID. For Android the channel must be registered in Initialize(GameNotificationChannel[]).

    String smallIcon

    Notification small icon.

    String largeIcon

    Notification large icon.

    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