Initializer

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

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

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

the context to bind to

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

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

the attributes to derive configuratio from

val attributes: TypedArray
context
Link copied to clipboard

the context to bind to

val context: WeakReference<Context>
pixelRatio
Link copied to clipboard

the device pixel ratio

val pixelRatio: Float