Function

path

DSL extension for adding a RemoteVectorPath to this.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

path

Android
public fun RemoteImageVector.Builder.path(
    name: String = DefaultPathName,
    fill: Brush? = null,
    fillAlpha: RemoteFloat = 1.0f.rf,
    stroke: Brush? = null,
    strokeAlpha: RemoteFloat = 1.0f.rf,
    strokeLineWidth: RemoteFloat = DefaultStrokeLineWidth,
    strokeLineCap: StrokeCap = DefaultStrokeLineCap,
    strokeLineJoin: StrokeJoin = DefaultStrokeLineJoin,
    strokeLineMiter: RemoteFloat = DefaultStrokeLineMiter,
    pathFillType: PathFillType = DefaultFillType,
    pathBuilder: RemotePathBuilder.() -> Unit,
): RemoteImageVector.Builder

DSL extension for adding a RemoteVectorPath to this.

Parameters

name the name for this path
fill specifies the Brush used to fill the path
fillAlpha the alpha to fill the path
stroke specifies the Brush used to fill the stroke
strokeAlpha the alpha to stroke the path
strokeLineWidth the width of the line to stroke the path
strokeLineCap specifies the linecap for a stroked path
strokeLineJoin specifies the linejoin for a stroked path
strokeLineMiter specifies the miter limit for a stroked path
pathFillType specifies the winding rule that decides how the interior of a Path is calculated.
pathBuilder RemotePathBuilder lambda for adding RemotePathNodes to this path.