Share via


IUIPopoverPresentationControllerDelegate Interface

Definition

Delegate object for UIPopoverPresentationController objects. Provides methods relating to presentation and dismissal events and allows fine-grained control for adaptive presentations.

[Foundation.Protocol(Name="UIPopoverPresentationControllerDelegate", WrapperType=typeof(UIKit.UIPopoverPresentationControllerDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PrepareForPopoverPresentation", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIPopoverPresentationController) }, Selector="prepareForPopoverPresentation:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldDismissPopover", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIPopoverPresentationController) }, ReturnType=typeof(System.Boolean), Selector="popoverPresentationControllerShouldDismissPopover:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidDismissPopover", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIPopoverPresentationController) }, Selector="popoverPresentationControllerDidDismissPopover:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillRepositionPopover", ParameterByRef=new System.Boolean[] { false, true, true }, ParameterType=new System.Type[] { typeof(UIKit.UIPopoverPresentationController), typeof(CoreGraphics.CGRect), typeof(UIKit.UIView) }, Selector="popoverPresentationController:willRepositionPopoverToRect:inView:")]
public interface IUIPopoverPresentationControllerDelegate : IDisposable, UIKit.IUIAdaptivePresentationControllerDelegate
[<Foundation.Protocol(Name="UIPopoverPresentationControllerDelegate", WrapperType=typeof(UIKit.UIPopoverPresentationControllerDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PrepareForPopoverPresentation", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIPopoverPresentationController) }, Selector="prepareForPopoverPresentation:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="ShouldDismissPopover", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIPopoverPresentationController) }, ReturnType=typeof(System.Boolean), Selector="popoverPresentationControllerShouldDismissPopover:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidDismissPopover", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIPopoverPresentationController) }, Selector="popoverPresentationControllerDidDismissPopover:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillRepositionPopover", ParameterByRef=new System.Boolean[] { false, true, true }, ParameterType=new System.Type[] { typeof(UIKit.UIPopoverPresentationController), typeof(CoreGraphics.CGRect), typeof(UIKit.UIView) }, Selector="popoverPresentationController:willRepositionPopoverToRect:inView:")>]
type IUIPopoverPresentationControllerDelegate = interface
    interface INativeObject
    interface IDisposable
    interface IUIAdaptivePresentationControllerDelegate
Derived
Attributes
Implements

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
DidAttemptToDismiss(UIPresentationController) (Inherited from IUIAdaptivePresentationControllerDelegate)
DidDismiss(UIPresentationController) (Inherited from IUIAdaptivePresentationControllerDelegate)
DidDismissPopover(UIPopoverPresentationController)

The popover that is controlled by popoverPresentationController was dismissed.

GetAdaptivePresentationStyle(UIPresentationController, UITraitCollection)

The presentation style to use for the specified controller and traitCollection.

(Inherited from IUIAdaptivePresentationControllerDelegate)
GetAdaptivePresentationStyle(UIPresentationController)

Returns the new presentation style to use after a change to the forPresentationController.

(Inherited from IUIAdaptivePresentationControllerDelegate)
GetViewControllerForAdaptivePresentation(UIPresentationController, UIModalPresentationStyle)

The view controller to use for the specified style.

(Inherited from IUIAdaptivePresentationControllerDelegate)
PrepareAdaptivePresentationController(UIPresentationController, UIPresentationController) (Inherited from IUIAdaptivePresentationControllerDelegate)
PrepareForPopoverPresentation(UIPopoverPresentationController)

The popover that is controlled by popoverPresentationController will be presented soon.

ShouldDismiss(UIPresentationController) (Inherited from IUIAdaptivePresentationControllerDelegate)
ShouldDismissPopover(UIPopoverPresentationController)

Asks if the popover that is controlled by popoverPresentationController should be dismissed.

WillDismiss(UIPresentationController) (Inherited from IUIAdaptivePresentationControllerDelegate)
WillPresent(UIPresentationController, UIModalPresentationStyle, IUIViewControllerTransitionCoordinator)

Called prior to presentation.

(Inherited from IUIAdaptivePresentationControllerDelegate)
WillRepositionPopover(UIPopoverPresentationController, CGRect, UIView)

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
DidAttemptToDismiss(IUIAdaptivePresentationControllerDelegate, UIPresentationController)
DidDismiss(IUIAdaptivePresentationControllerDelegate, UIPresentationController)
GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UITraitCollection)

The presentation style to use for the specified controller and traitCollection.

GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController)

Returns the new presentation style to use after a change to the forPresentationController.

GetViewControllerForAdaptivePresentation(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UIModalPresentationStyle)

The view controller to use for the specified style.

PrepareAdaptivePresentationController(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UIPresentationController)
ShouldDismiss(IUIAdaptivePresentationControllerDelegate, UIPresentationController)
WillDismiss(IUIAdaptivePresentationControllerDelegate, UIPresentationController)
WillPresent(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UIModalPresentationStyle, IUIViewControllerTransitionCoordinator)

Called prior to presentation.

DidDismissPopover(IUIPopoverPresentationControllerDelegate, UIPopoverPresentationController)

The popover that is controlled by popoverPresentationController was dismissed.

PrepareForPopoverPresentation(IUIPopoverPresentationControllerDelegate, UIPopoverPresentationController)

The popover that is controlled by popoverPresentationController will be presented soon.

ShouldDismissPopover(IUIPopoverPresentationControllerDelegate, UIPopoverPresentationController)

Asks if the popover that is controlled by popoverPresentationController should be dismissed.

WillRepositionPopover(IUIPopoverPresentationControllerDelegate, UIPopoverPresentationController, CGRect, UIView)

Applies to

See also