becomeCurrent()
Marks the activity as currently in use by the user.
Declaration
func becomeCurrent()Mentioned in
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.
Don’t 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.