login

fun login(context: Context = testContext): Boolean

Log in to the FakeMusic media source. After this, the contents of the FakeMusic media source will be accessible until logout is called. This call does nothing unless requireLogin is 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.