{!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 Popup<T> | App UI | 0.5.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Popup<T>

    A generic base class for popups.

    Inheritance
    object
    Popup
    Popup<T>
    AnchorPopup<T>
    BottomNotification<T>
    Modal
    Tray
    Inherited Members
    Popup.k_NextFrameDurationMs
    Popup.k_PopupShow
    Popup.k_PopupDismiss
    Popup.handler
    Popup.keyboardDismissEnabled
    Popup.view
    Popup.targetParent
    Popup.contentView
    Popup.context
    Popup.Dismiss()
    Popup.Dismiss(DismissType)
    Popup.ShouldDismiss(DismissType)
    Popup.Show()
    Popup.ShowView()
    Popup.GetFocusableElement()
    Popup.ShouldAnimate()
    Popup.OnViewKeyDown(KeyDownEvent)
    Popup.AnimateViewIn()
    Popup.HideView(DismissType)
    Popup.AnimateViewOut(DismissType)
    Popup.FindSuitableParent(VisualElement)
    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 Popup<T> : Popup where T : Popup<T>
    Type Parameters
    Name Description
    T

    A sealed popup class type.

    Constructors

    Name Description
    Popup(VisualElement, ApplicationContext, VisualElement, VisualElement)

    Default constructor.

    Fields

    Name Description
    m_LastFocusedElement

    The last focused element before the popup was shown.

    Methods

    Name Description
    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.

    SetKeyboardDismiss(bool)

    Activate the possibility to dismiss the popup via Escape key or Return button.

    SetLastFocusedElement(Focusable)

    Set the last focused element before the popup was shown.

    Events

    Name Description
    dismissed

    Event triggered when the popup has been dismissed.

    shown

    Event triggered when the popup has become visible.

    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)