Filmstrip

fun Filmstrip(context: Context, block: FilmstripBuilder.() -> Unit = {}): Filmstrip(source)

Creates a Filmstrip against an explicit Context.

For an app that disables App Startup, or a test running outside it. Retains the application context for the whole process, so every Filmstrip built afterwards sees it too.

Return

The configured instance.

Parameters

context

Any context. Its application context is what gets retained.

block

Registers components on the builder.

Creates a Filmstrip, registering whatever block asks for and nothing else.

An instance built with an empty block can only Filmstrip.probe, and only on Android and Apple. Depend on dev.jordond.filmstrip:filmstrip and call allBackends() in block to register every backend it bundles.

On Android the application context comes from App Startup. Where App Startup is disabled or does not run, such as a bare JVM test, install one with the Android-only Filmstrip(context) overload.

Return

The configured instance.

Parameters

block

Registers components on the builder.