{!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 Popover | App UI | 0.6.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Popover

    A popup usually anchored to another UI element.

    Inheritance
    object
    Popup
    Popup<Popover>
    AnchorPopup<Popover>
    Popover
    Inherited Members
    AnchorPopup<Popover>.placement
    AnchorPopup<Popover>.currentPlacement
    AnchorPopup<Popover>.offset
    AnchorPopup<Popover>.crossOffset
    AnchorPopup<Popover>.containerPadding
    AnchorPopup<Popover>.shouldFlip
    AnchorPopup<Popover>.arrowVisible
    AnchorPopup<Popover>.outsideClickDismissEnabled
    AnchorPopup<Popover>.outsideScrollEnabled
    AnchorPopup<Popover>.outsideClickStrategy
    AnchorPopup<Popover>.anchor
    AnchorPopup<Popover>.SetPlacement(PopoverPlacement)
    AnchorPopup<Popover>.SetOffset(int)
    AnchorPopup<Popover>.SetCrossOffset(int)
    AnchorPopup<Popover>.SetContainerPadding(int)
    AnchorPopup<Popover>.SetShouldFlip(bool)
    AnchorPopup<Popover>.SetArrowVisible(bool)
    AnchorPopup<Popover>.SetAnchor(VisualElement)
    AnchorPopup<Popover>.SetOutsideClickDismiss(bool)
    AnchorPopup<Popover>.SetOutsideScrollEnabled(bool)
    AnchorPopup<Popover>.SetOutsideClickStrategy(OutsideClickStrategy)
    Popup<Popover>.shown
    Popup<Popover>.dismissed
    Popup<Popover>.SetKeyboardDismiss(bool)
    Popup<Popover>.SetLastFocusedElement(Focusable)
    Popup.keyboardDismissEnabled
    Popup.view
    Popup.targetParent
    Popup.contentView
    Popup.context
    Popup.Dismiss()
    Popup.Dismiss(DismissType)
    Popup.Show()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Unity.AppUI.UI
    Assembly: solution.dll
    Syntax
    public sealed class Popover : AnchorPopup<Popover>

    Properties

    Name Description
    modalBackdrop

    Enable or disable the blocking of outside click events.

    Methods

    Name Description
    Build(VisualElement, VisualElement)

    Build a new Popover instance.

    GetFocusableElement()

    Returns the element that will be focused when the view will become visible.

    The default value is `null`.

    GetMovableElement()

    Method which must return the visual element that needs to be moved, based on the anchor position and size.

    InvokeDismissedEventHandlers(DismissType)

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

    SetModalBackdrop(bool)

    Enable or disable the blocking of outside click events.

    ShouldAnimate()

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

    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)