The second Android 11 Developer Preview is now available, test it out and share your feedback.

VectorComponent

class VectorComponent : VNode
kotlin.Any
   ↳ androidx.ui.graphics.vector.VNode
   ↳ androidx.ui.graphics.vector.VectorComponent

Summary

Public constructors

<init>(viewportWidth: Float, viewportHeight: Float, defaultWidth: Px, defaultHeight: Px, name: String = "")

Public methods

Unit
draw(canvas: Canvas, alpha: Float, colorFilter: ColorFilter?)

Unit
draw(canvas: Canvas)

String

Inherited functions

Properties

Px

Px

String

GroupComponent

Int

Float

Float

Inherited properties

Public constructors

<init>

VectorComponent(
    viewportWidth: Float,
    viewportHeight: Float,
    defaultWidth: Px,
    defaultHeight: Px,
    name: String = "")

Public methods

draw

fun draw(
    canvas: Canvas,
    alpha: Float,
    colorFilter: ColorFilter?
): Unit

draw

fun draw(canvas: Canvas): Unit

toString

fun toString(): String

Properties

defaultHeight

var defaultHeight: Px

defaultWidth

var defaultWidth: Px

name

val name: String

root

val root: GroupComponent

size

val size: Int

viewportHeight

var viewportHeight: Float

viewportWidth

var viewportWidth: Float