{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class BottomNotification<T> | App UI | 0.5.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BottomNotification<T>

    A base class for notification displayed at the bottom of the screen.

    Inheritance
    object
    Popup
    Popup<T>
    BottomNotification<T>
    Toast
    Inherited Members
    Popup<T>.m_LastFocusedElement
    Popup<T>.shown
    Popup<T>.dismissed
    Popup<T>.SetKeyboardDismiss(bool)
    Popup<T>.SetLastFocusedElement(Focusable)
    Popup.k_NextFrameDurationMs
    Popup.k_PopupShow
    Popup.k_PopupDismiss
    Popup.handler
    Popup.keyboardDismissEnabled
    Popup.view
    Popup.targetParent
    Popup.contentView
    Popup.context
    Popup.Dismiss()
    Popup.ShouldDismiss(DismissType)
    Popup.ShowView()
    Popup.GetFocusableElement()
    Popup.OnViewKeyDown(KeyDownEvent)
    Popup.HideView(DismissType)
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.AppUI.UI
    Assembly: solution.dll
    Syntax
    public abstract class BottomNotification<T> : Popup<T> where T : BottomNotification<T>
    Type Parameters
    Name Description
    T

    The sealed Notification popup class type.

    Constructors

    Name Description
    BottomNotification(VisualElement, ApplicationContext, VisualElement)

    Default constructor.

    Properties

    Name Description
    animationMode

    Returns the animation used by the bar when it will be displayed.

    duration

    Returns the specified display duration of the bar.

    isShown

    Returns True if the bar is currently displayed on the screen, False otherwise.

    isShownOrQueued

    Returns True if the bar is currently displayed or queued for display on the screen, False otherwise.

    Methods

    Name Description
    AnimateViewIn()

    Start the animation for this popup.

    AnimateViewOut(DismissType)

    Start the hide animation for this popup.

    Dismiss(DismissType)

    Dismiss the Popup.

    FindSuitableParent(VisualElement)

    Find the parent VisualElement where the popup will be added. This is usually one of the layers from the Panel root UI element.

    InvokeDismissedEventHandlers(DismissType)

    Called when the popup has been dismissed. This method will invoke any handlers attached to the dismissed event.

    InvokeShownEventHandlers()

    Called when the popup has become visible. This method will invoke any handlers attached to the shown event.

    SetAnimationMode(AnimationMode)

    Set a new value for the animationMode property.

    SetDuration(NotificationDuration)

    Set the duration the notification should be displayed.

    ShouldAnimate()

    Implement this method to know if the popup should call AnimateViewIn() and AnimateViewOut(DismissType) methods or not.

    Show()

    Show the Popup.

    In This Article
    Back to top
    Copyright © 2023 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)