Instance Method

beginActivityWithOptions:reason:

Begin an activity using the given options and reason.

Declaration

- (id<NSObject>)beginActivityWithOptions:(NSActivityOptions)options reason:(NSString *)reason;

Parameters

options

Options for the activity. See NSActivityOptions for possible values.

reason

A string used in debugging to indicate the reason the activity began.

Return Value

An object token representing the activity.

Discussion

Indicate completion of the activity by calling endActivity: passing the returned object as the argument.

See Also

Managing Activities

- endActivity:

Ends the given activity.

- performActivityWithOptions:reason:usingBlock:

Synchronously perform an activity defined by a given block using the given options.

- performExpiringActivityWithReason:usingBlock:

Performs the specified block asynchronously and notifies you if the process is about to be suspended.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software