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

VectorComposition

class VectorComposition : Composition
kotlin.Any
   ↳ androidx.compose.Composition
   ↳ androidx.ui.graphics.vector.VectorComposition

Summary

Public constructors

<init>(container: VectorComponent, parent: CompositionReference? = null)

Public methods

Unit
compose(content: VectorScope.(viewportWidth: Float, viewportHeight: Float) -> Unit)

Inherited functions

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Public constructors

<init>

VectorComposition(
    container: VectorComponent,
    parent: CompositionReference? = null)

Public methods

compose

fun compose(content: VectorScope.(viewportWidth: Float, viewportHeight: Float) -> Unit): Unit