UIAdaptivePresentationControllerDelegate_Extensions.GetAdaptivePresentationStyle Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController) |
Returns the new presentation style to use after a change to the |
GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UIModalPresentationStyle) |
Obsolete.
Incorrect signature. Use the overload with a UITraitCollection parameter. |
GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UITraitCollection) |
The presentation style to use for the specified |
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
The instance on which this extension method operates.
- forPresentationController
- UIPresentationController
Returns
Applies to
GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate, UIPresentationController, UIModalPresentationStyle)
Caution
Incorrect signature. Use the overload with a UITraitCollection parameter.
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
The instance on which this extension method operates.
- controller
- UIPresentationController
- style
- UIModalPresentationStyle
Returns
- Attributes
Applies to
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
The instance on which this extension method operates.
- controller
- UIPresentationController
- traitCollection
- UITraitCollection
Returns
- Attributes