UIAdaptivePresentationControllerDelegate.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(UIPresentationController) |
Returns the new presentation style to use after a change to the |
GetAdaptivePresentationStyle(UIPresentationController, UIModalPresentationStyle) |
Obsolete.
Returns a new view controller to use in response to a presentation style change to |
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
- controller
- UIPresentationController
- style
- UIModalPresentationStyle
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
- controller
- UIPresentationController
- traitCollection
- UITraitCollection
Returns
- Attributes