NSExtensionContext_NCWidgetAdditions.GetWidgetMaximumSize 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.
Returns the maximum size of the widget for the specified display mode.
[Foundation.Export("widgetMaximumSizeForDisplayMode:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static CoreGraphics.CGSize GetWidgetMaximumSize (this Foundation.NSExtensionContext This, NotificationCenter.NCWidgetDisplayMode displayMode);
static member GetWidgetMaximumSize : Foundation.NSExtensionContext * NotificationCenter.NCWidgetDisplayMode -> CoreGraphics.CGSize
Parameters
- This
- NSExtensionContext
The extension context on which this method operates.
- displayMode
- NCWidgetDisplayMode
The display mode to query.
Returns
The maximum size of the widget for the specified display mode.
- Attributes