Contents

removeSession:

Removes a session from the active route.

Declaration

- (void) removeSession:(AVSystemRouteSession *) session;

Parameters

  • session:

    The session to remove from this route. If the session is not currently associated with this route, this method has no effect.

Discussion

Call this method to unregister a session from the route when playback ends or when you no longer need the session. Removing a session stops any ongoing communication associated with that session and releases system resources.

If the session is currently active, this method stops the session before removing it.