Google is committed to advancing racial equity for Black communities. See how.

androidx.compose.material.icons

Top-level functions summary

VectorAsset

Utility delegate to construct a Material icon with default size information.

Extension functions summary

For VectorAssetBuilder
VectorAssetBuilder
VectorAssetBuilder.materialPath(fillAlpha: Float = 1f, strokeAlpha: Float = 1f, pathFillType: PathFillType = DefaultFillType, pathBuilder: PathBuilder.() -> Unit)

Adds a vector path to this icon with Material defaults.

Top-level functions

materialIcon

inline fun materialIcon(
    name: String,
    block: VectorAssetBuilder.() -> VectorAssetBuilder
): VectorAsset

Utility delegate to construct a Material icon with default size information. This is used by generated icons, and should not be used manually.

Parameters
name: String the full name of the generated icon
block: VectorAssetBuilder.() -> VectorAssetBuilder builder lambda to add paths to this vector asset

Extension functions

materialPath

inline fun VectorAssetBuilder.materialPath(
    fillAlpha: Float = 1f,
    strokeAlpha: Float = 1f,
    pathFillType: PathFillType = DefaultFillType,
    pathBuilder: PathBuilder.() -> Unit
): VectorAssetBuilder

Adds a vector path to this icon with Material defaults.

Parameters
fillAlpha: Float = 1f fill alpha for this path
strokeAlpha: Float = 1f stroke alpha for this path
pathFillType: PathFillType = DefaultFillType PathFillType for this path
pathBuilder: PathBuilder.() -> Unit builder lambda to add commands to this path