Function

createNamedRemoteColor

Creates a named RemoteColor with an initial value.

createNamedRemoteColor

Source set: Android
public fun RemoteColor.Companion.createNamedRemoteColor(
    name: String,
    defaultValue: Color,
    domain: RemoteState.Domain = RemoteState.Domain.User,
): RemoteColor

Creates a named RemoteColor with an initial value.

Named remote colors can be set via AndroidRemoteContext.setNamedColor.

Parameters

name A unique name to identify this state within its domain.
defaultValue The initial Color value for the named remote color.
domain The domain for the named state. Defaults to RemoteState.Domain.User.

Return

A RemoteColor representing the named color.

createNamedRemoteColor

Source set: Android
public fun createNamedRemoteColor(
    name: String,
    defaultValue: Color,
    domain: RemoteState.Domain = RemoteState.Domain.User,
): RemoteColor

Creates a named RemoteColor with an initial value.

Parameters

name A unique name to identify this state within its domain.
defaultValue The initial Color value for the named remote color.
domain The domain for the named state. Defaults to RemoteState.Domain.User.

Return

A RemoteColor representing the named color.

Content updated: