編輯

共用方式為


NSProcessInfo.BeginActivity(NSActivityOptions, String) Method

Definition

Begins an activity, allowing the app dev fine-grained control over the system heuristics for power, battery life, and responsiveness.

[Foundation.Export("beginActivityWithOptions:reason:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Foundation.NSObject BeginActivity (Foundation.NSActivityOptions options, string reason);
abstract member BeginActivity : Foundation.NSActivityOptions * string -> Foundation.NSObject
override this.BeginActivity : Foundation.NSActivityOptions * string -> Foundation.NSObject

Parameters

reason
String

Returns

Attributes

Applies to