requireLogin

fun requireLogin(context: Context = testContext)

Start requiring clients to log in to access the FakeMusic media source. If login was not previously called, after this request the contents of the FakeMusic media source will be inaccessible until login is called. This resets, kills, and restarts the FakeMusic media source service.

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.