Interface

RemotePaint

A paint object used for remote drawing operations.

Source set: JvmAndAndroid
public sealed interface RemotePaint

A paint object used for remote drawing operations.

RemotePaint bridges standard platform paint properties with remote-first types like RemoteFloat and RemoteColor, allowing properties to be associated with remote IDs for efficient serialization and dynamic expressions.

This interface can be instantiated via the RemotePaint factory function, or converted from platform paints using platform-specific extension functions.

Properties

blendMode

Source set: JvmAndAndroid
public var blendMode: RemoteBlendMode

The RemoteBlendMode to use when drawing with this paint.

style

Source set: JvmAndAndroid
public var style: RemotePaintingStyle

The RemotePaintingStyle to use (e.g., Fill, Stroke).

strokeWidth

Source set: JvmAndAndroid
public var strokeWidth: RemoteFloat

The width of the stroke when style is set to Stroke.

strokeCap

Source set: JvmAndAndroid
public var strokeCap: RemoteStrokeCap

The RemoteStrokeCap to use for the ends of lines and paths.

strokeJoin

Source set: JvmAndAndroid
public var strokeJoin: RemoteStrokeJoin

The RemoteStrokeJoin to use for the joints of lines and paths.

color

Source set: JvmAndAndroid
public var color: RemoteColor

The color to use for drawing.

textSize

Source set: JvmAndAndroid
public var textSize: RemoteFloat

The size of the text to draw.

isAntiAlias

Source set: JvmAndAndroid
public var isAntiAlias: Boolean

Whether anti-aliasing is enabled when drawing with this paint.

filterQuality

Source set: JvmAndAndroid
public var filterQuality: RemoteFilterQuality

The RemoteFilterQuality to use when scaling bitmaps.

shader

Source set: JvmAndAndroid
public var shader: RemoteShader?

The RemoteShader to use for drawing gradients or other patterns.

colorFilter

Source set: JvmAndAndroid
public var colorFilter: RemoteColorFilter?

The color filter to apply to the drawn content.

typeface

Source set: JvmAndAndroid
public var typeface: RemoteTypeface?

The RemoteTypeface to use for drawing text.

fontFeatureSettings

Source set: JvmAndAndroid
public var fontFeatureSettings: String?

The CSS-style font feature settings string (e.g., "tnum", "zero").

fontVariationSettings

Source set: JvmAndAndroid
public var fontVariationSettings: RemoteFontVariation.Settings?

The RemoteFontVariation.Settings to use for drawing text.

Members

Companion

Source set: JvmAndAndroid
public companion object

Functions

invoke

Source set: JvmAndAndroid
public operator fun invoke(init: RemotePaint.() -> Unit = {}): RemotePaint

Creates a new RemotePaint instance using StandardRemotePaint.

Parameters

init An optional initialization block to configure the paint.

Return

a new RemotePaint configured by init

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: