Function

group

DSL extension for adding a VectorGroup to this.

group

Source set: Common
public inline fun ImageVector.Builder.group(
    name: String = DefaultGroupName,
    rotate: Float = DefaultRotation,
    pivotX: Float = DefaultPivotX,
    pivotY: Float = DefaultPivotY,
    scaleX: Float = DefaultScaleX,
    scaleY: Float = DefaultScaleY,
    translationX: Float = DefaultTranslationX,
    translationY: Float = DefaultTranslationY,
    clipPathData: List<PathNode> = EmptyPath,
    block: ImageVector.Builder.() -> Unit,
): ImageVector.Builder

DSL extension for adding a VectorGroup to this.

See ImageVector.Builder.addGroup for the corresponding builder function.

Parameters

name the name of the group
rotate the rotation of the group in degrees
pivotX the x coordinate of the pivot point to rotate or scale the group
pivotY the y coordinate of the pivot point to rotate or scale the group
scaleX the scale factor in the X-axis to apply to the group
scaleY the scale factor in the Y-axis to apply to the group
translationX the translation in virtual pixels to apply along the x-axis
translationY the translation in virtual pixels to apply along the y-axis
clipPathData the path information used to clip the content within the group
block builder lambda to add children to this group
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: