🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

RemoteString

Abstract base class for all remote string representations.

Source set: Android
public abstract class RemoteString internal constructor(cacheKey: RemoteStateCacheKey) :
    BaseRemoteState<String>(cacheKey)

Abstract base class for all remote string representations.

RemoteString represents a string value that can be a constant, a named variable, or a dynamic expression (e.g., a concatenation).

Properties

length

Source set: Android
public val length: RemoteInt

isEmpty

Source set: Android
public val isEmpty: RemoteBoolean

isNotEmpty

Source set: Android
public val isNotEmpty: RemoteBoolean

Functions

plus

Source set: Android
public operator fun plus(v: RemoteString): RemoteString

Concatenates this RemoteString with another RemoteString.

Parameters

v The other RemoteString to concatenate.

Return

A new MutableRemoteString representing the concatenated string.

uppercase

Source set: Android
public fun uppercase(): RemoteString

Returns a RemoteString that evaluates to a upper case version of this RemoteString using the system default locale.

Return

A new MutableRemoteString representing the upper case version of this string.

lowercase

Source set: Android
public fun lowercase(): RemoteString

Returns a RemoteString that evaluates to a lower case version of this RemoteString using the system default locale.

Return

A new MutableRemoteString representing the lower case version of this string.

trim

Source set: Android
public fun trim(): RemoteString

Returns a RemoteString that evaluates to the trimmed version of this this RemoteString where leading and trailing whitespace characters have been removed.

Return

A new MutableRemoteString representing the trimmed version of this string.

Members

Companion

Source set: Android
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
    public companion object

Functions

createNamedRemoteString

Source set: Android
public fun createNamedRemoteString(
            name: String,
            defaultValue: String,
            domain: RemoteState.Domain = RemoteState.Domain.User,
        ): RemoteString

Creates a named RemoteString with an initial value.

Parameters

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

Return

A RemoteString representing the named string.

Content updated: