編集

次の方法で共有


NSExtensionContext_NCWidgetAdditions.GetWidgetMaximumSize 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

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

Applies to