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
public val length: RemoteInt
isEmpty
public val isEmpty: RemoteBoolean
isNotEmpty
public val isNotEmpty: RemoteBoolean
Functions
plus
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
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
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
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
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public companion object
Functions
createNamedRemoteString
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.