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

attributes

the attributes to derive configuratio from

context

the context to bind to

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

Functions

component1
Link copied to clipboard
operator fun component1(): WeakReference<Context>
component2
Link copied to clipboard
operator fun component2(): TypedArray
component3
Link copied to clipboard
operator fun component3(): Float
copy
Link copied to clipboard
fun copy(context: WeakReference<Context>, attributes: TypedArray, pixelRatio: Float): ViewPlugin.Initializer
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

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