invalidate()
Invalidates the background activity session.
Declaration
final func invalidate()Discussion
This method ends the session immediately. The system terminates any UI that displays a visual indication to this background session. After you invalidate a session, it can’t become active again and you need to create a new session to begin receiving updates again.