Share via


UIAdaptivePresentationControllerDelegate.GetAdaptivePresentationStyle Method

Definition

Overloads

Name Description
GetAdaptivePresentationStyle(UIPresentationController)

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

GetAdaptivePresentationStyle(UIPresentationController, UITraitCollection)

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

GetAdaptivePresentationStyle(UIPresentationController)

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

[Foundation.Export("adaptivePresentationStyleForPresentationController:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UIModalPresentationStyle GetAdaptivePresentationStyle(UIKit.UIPresentationController forPresentationController);
[<Foundation.Export("adaptivePresentationStyleForPresentationController:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetAdaptivePresentationStyle : UIKit.UIPresentationController -> UIKit.UIModalPresentationStyle
override this.GetAdaptivePresentationStyle : UIKit.UIPresentationController -> UIKit.UIModalPresentationStyle

Parameters

forPresentationController
UIPresentationController

Returns

Implements

Attributes

Applies to

GetAdaptivePresentationStyle(UIPresentationController, UITraitCollection)

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

[Foundation.Export("adaptivePresentationStyleForPresentationController:traitCollection:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UIModalPresentationStyle GetAdaptivePresentationStyle(UIKit.UIPresentationController controller, UIKit.UITraitCollection traitCollection);
[<Foundation.Export("adaptivePresentationStyleForPresentationController:traitCollection:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetAdaptivePresentationStyle : UIKit.UIPresentationController * UIKit.UITraitCollection -> UIKit.UIModalPresentationStyle
override this.GetAdaptivePresentationStyle : UIKit.UIPresentationController * UIKit.UITraitCollection -> UIKit.UIModalPresentationStyle

Parameters

traitCollection
UITraitCollection

Returns

Implements

Attributes

Applies to