UIPresentationController.AdaptivePresentationStyle 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
AdaptivePresentationStyle() |
Gets the presentation style to use when the app changes in size. |
AdaptivePresentationStyle(UITraitCollection) |
Gets the UIModalPresentationStyle associated with the . |
AdaptivePresentationStyle()
Gets the presentation style to use when the app changes in size.
[Foundation.Export("adaptivePresentationStyle")]
public virtual UIKit.UIModalPresentationStyle AdaptivePresentationStyle ();
abstract member AdaptivePresentationStyle : unit -> UIKit.UIModalPresentationStyle
override this.AdaptivePresentationStyle : unit -> UIKit.UIModalPresentationStyle
Returns
- Attributes
Applies to
AdaptivePresentationStyle(UITraitCollection)
Gets the UIModalPresentationStyle associated with the .
[Foundation.Export("adaptivePresentationStyleForTraitCollection:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 3, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIModalPresentationStyle AdaptivePresentationStyle (UIKit.UITraitCollection traitCollection);
abstract member AdaptivePresentationStyle : UIKit.UITraitCollection -> UIKit.UIModalPresentationStyle
override this.AdaptivePresentationStyle : UIKit.UITraitCollection -> UIKit.UIModalPresentationStyle
Parameters
- traitCollection
- UITraitCollection
Returns
- Attributes