Instance Method


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


func invalidate()


Call this method when the user stops engaging in the associated activity and that activity is no longer available. For example, you might call this method when the user closes the window associated with the activity. After calling this method on a user activity object, calling the becomeCurrent() method on that object has no effect.

See Also

Registering and Invalidating User Activities

func becomeCurrent()

Marks the activity as currently in use by the user.

func resignCurrent()

Marks this activity object as inactive without invalidating it.

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