Initializer

data class Initializer(context: WeakReference<Context>, attributes: TypedArray, pixelRatio: Float)

Initializer class wraps a bind configuration that can be used during plugin initialisation.

Parameters

context

the context to bind to

attributes

the attributes to derive configuratio from

pixelRatio

the device pixel ratio

Constructors

Initializer
Link copied to clipboard
fun Initializer(context: WeakReference<Context>, attributes: TypedArray, pixelRatio: Float)
the context to bind to

Properties

attributes
Link copied to clipboard
val attributes: TypedArray
the attributes to derive configuratio from
context
Link copied to clipboard
val context: WeakReference<Context>
the context to bind to
pixelRatio
Link copied to clipboard
val pixelRatio: Float
the device pixel ratio