NSExtensionContext_NCWidgetAdditions.GetWidgetMaximumSize(NSExtensionContext, NCWidgetDisplayMode) NSExtensionContext_NCWidgetAdditions.GetWidgetMaximumSize(NSExtensionContext, NCWidgetDisplayMode) Method

Definition

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 NSExtensionContext

The extension context on which this method operates.

displayMode
NCWidgetDisplayMode NCWidgetDisplayMode

The display mode to query.

Returns

The maximum size of the widget for the specified display mode.

Applies to