define

fun define(context: Context = InstrumentationRegistry.getInstrumentation().context, contents: ItemBuilderConfig): FakeMusicCatalogItem

Define a test catalog, constructed via the given contents block.

The context is used to generate media item icon URIs that at runtime are retrieved from the FakeMusic media source. If not available, the instrumentation context will be used.

Return

a FakeMusicCatalogItem containing the defined media item browsing tree.