ViewerContextInitializer

class ViewerContextInitializer : Initializer<<Error class: unknown class>>

AndroidX App Startup component that captures the application Context for the viewer's renderer to use later.

Registered automatically through AndroidManifest.xml — no consumer code is required. Runs before the application's first android.app.Activity sees onCreate, so any subsequent call to ViewerContextHolder.get is guaranteed to find a non-null reference.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun create(context: <Error class: unknown class>): <Error class: unknown class>
Link copied to clipboard
open override fun dependencies(): List<Class<out Initializer<*>>>