Modifier

Partager via


UIAdaptivePresentationControllerDelegate.GetAdaptivePresentationStyle Method

Definition

Overloads

GetAdaptivePresentationStyle(UIPresentationController)

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

GetAdaptivePresentationStyle(UIPresentationController, UIModalPresentationStyle)
Obsolete.

Returns a new view controller to use in response to a presentation style change to style.

GetAdaptivePresentationStyle(UIPresentationController, UITraitCollection)

Returns the presentation style for the specified controller and trait collection.

GetAdaptivePresentationStyle(UIPresentationController)

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

[Foundation.Export("adaptivePresentationStyleForPresentationController:")]
public virtual UIKit.UIModalPresentationStyle GetAdaptivePresentationStyle (UIKit.UIPresentationController forPresentationController);
abstract member GetAdaptivePresentationStyle : UIKit.UIPresentationController -> UIKit.UIModalPresentationStyle
override this.GetAdaptivePresentationStyle : UIKit.UIPresentationController -> UIKit.UIModalPresentationStyle

Parameters

forPresentationController
UIPresentationController

Returns

Attributes

Applies to

GetAdaptivePresentationStyle(UIPresentationController, UIModalPresentationStyle)

Caution

Incorrect signature. Use the overload with a UITraitCollection parameter.

Returns a new view controller to use in response to a presentation style change to style.

[System.Obsolete("Incorrect signature. Use the overload with a UITraitCollection parameter.")]
public virtual UIKit.UIViewController GetAdaptivePresentationStyle (UIKit.UIPresentationController controller, UIKit.UIModalPresentationStyle style);
abstract member GetAdaptivePresentationStyle : UIKit.UIPresentationController * UIKit.UIModalPresentationStyle -> UIKit.UIViewController
override this.GetAdaptivePresentationStyle : UIKit.UIPresentationController * UIKit.UIModalPresentationStyle -> UIKit.UIViewController

Parameters

Returns

Attributes

Applies to

GetAdaptivePresentationStyle(UIPresentationController, UITraitCollection)

Returns the presentation style for the specified controller and trait collection.

[Foundation.Export("adaptivePresentationStyleForPresentationController:traitCollection:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 3, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIModalPresentationStyle GetAdaptivePresentationStyle (UIKit.UIPresentationController controller, UIKit.UITraitCollection traitCollection);
abstract member GetAdaptivePresentationStyle : UIKit.UIPresentationController * UIKit.UITraitCollection -> UIKit.UIModalPresentationStyle
override this.GetAdaptivePresentationStyle : UIKit.UIPresentationController * UIKit.UITraitCollection -> UIKit.UIModalPresentationStyle

Parameters

traitCollection
UITraitCollection

Returns

Attributes

Applies to