followCollection

fun followCollection(context: Context = testContext, collectionId: String): Boolean

Follow a collectionId. This means that the collection is added to a special library category FakeMusicMediaBrowserServiceInfo.LIBRARY_CATEGORY_ID and library item FakeMusicMediaBrowserServiceInfo.LIBRARY_ITEM_ID.

When using FakeMusicMediaSourceController from inside the test framework, leave context to the default value to use the instrumentation context.

Return

true when the action was successfully processed, false otherwise.

See also