Instance Method

becomeCurrent

Marks the activity as currently in use by the user.

Declaration

- (void)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

- resignCurrent

Marks this activity object as inactive without invalidating it.

- invalidate

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