Instance Method

becomeCurrent()

Marks the activity as currently in use by the user.

Declaration

func becomeCurrent()

Discussion

Call this method to let the system know that the user is performing the associated activity. The system makes this object the current user activity object, which makes it available for Handoff and search indexing. If another user activity object was previously active, that object is made inactive.

Do not call this method when providing a user activity object for a Siri request. Siri holds on to user activity objects and passes them along to your app automatically in response to specific events.

If you previously called the invalidate() method on the current object, calling this method has no effect.

See Also

Registering and Invalidating User Activities

func resignCurrent()

Marks this activity object as inactive without invalidating it.

func invalidate()

Invalidates an activity and marks it as no longer eligible for continuation.

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