getLoginState

fun getLoginState(context: Context = testContext): Boolean

Retrieve whether log in is required to access the FakeMusic media source. If the command cannot be sent, this call throws a RuntimeException.

Return

true if login is required to access the FakeMusic media source.

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.