logout

fun logout(context: Context = testContext): Boolean

Log out from the session, and require a new login action. After this, the contents of the FakeMusic media source will be inaccessible until login is called. This call does nothing until both requireLogin and login are called.

Return

true when the action was successfully processed, false otherwise.

Parameters

context

Android Context to use to perform the request. When using FakeMusicMediaSourceController from inside the test framework, leave to the default to use the instrumentation context.