UIAdaptivePresentationControllerDelegate_Extensions.GetAdaptivePresentationStyle UIAdaptivePresentationControllerDelegate_Extensions.GetAdaptivePresentationStyle Method

Definition

Overloads

GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController) GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController)

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

GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UIModalPresentationStyle) GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UIModalPresentationStyle)

Incorrect signature. Use the overload with a UITraitCollection parameter.

GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UITraitCollection) GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UITraitCollection)

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

GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController) GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController)

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

public static UIKit.UIModalPresentationStyle GetAdaptivePresentationStyle (this UIKit.IUIAdaptivePresentationControllerDelegate This, UIKit.UIPresentationController forPresentationController);
static member GetAdaptivePresentationStyle : UIKit.IUIAdaptivePresentationControllerDelegate * UIKit.UIPresentationController -> UIKit.UIModalPresentationStyle

Parameters

This
IUIAdaptivePresentationControllerDelegate IUIAdaptivePresentationControllerDelegate

The instance on which this extension method operates.

Returns

GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UIModalPresentationStyle) GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UIModalPresentationStyle)

Warning

This API is now obsolete.

Incorrect signature. Use the overload with a UITraitCollection parameter.

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

Parameters

This
IUIAdaptivePresentationControllerDelegate IUIAdaptivePresentationControllerDelegate

The instance on which this extension method operates.

Returns

GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UITraitCollection) GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UITraitCollection)

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

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 3, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UIModalPresentationStyle GetAdaptivePresentationStyle (this UIKit.IUIAdaptivePresentationControllerDelegate This, UIKit.UIPresentationController controller, UIKit.UITraitCollection traitCollection);
static member GetAdaptivePresentationStyle : UIKit.IUIAdaptivePresentationControllerDelegate * UIKit.UIPresentationController * UIKit.UITraitCollection -> UIKit.UIModalPresentationStyle

Parameters

This
IUIAdaptivePresentationControllerDelegate IUIAdaptivePresentationControllerDelegate

The instance on which this extension method operates.

Returns

Applies to