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

RemoteLong

Abstract base class for all remote long representations.

Source set: Android
public open class RemoteLong internal constructor(
    @get:RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) public val low: RemoteInt,
    @get:RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) public val high: RemoteInt,
    cacheKey: RemoteStateCacheKey =
        RemoteOperationCacheKey.create(RemoteLongOp.FromLowHigh, low, high),
) : BaseRemoteState<Long>(cacheKey)

Abstract base class for all remote long representations. This class extends RemoteState<Long>.

Properties

constantValueOrNull

Source set: Android
public override val constantValueOrNull: Long?

Functions

plus

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

Returns a new RemoteLong that evaluates to this RemoteLong plus v.

minus

Source set: Android
public operator fun minus(v: RemoteLong): RemoteLong

Returns a new RemoteLong that evaluates to this RemoteLong minus v.

times

Source set: Android
public operator fun times(v: RemoteLong): RemoteLong

Returns a new RemoteLong that evaluates to this RemoteLong times v.

toRemoteInt

Source set: Android
public fun toRemoteInt(): RemoteInt

Returns a RemoteInt that evaluates to the truncating conversion of the lower 32 bits of the RemoteLong.

Members

Companion

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

Functions

createNamedRemoteLong

Source set: Android
public fun createNamedRemoteLong(
            name: String,
            defaultValue: Long,
            domain: RemoteState.Domain = RemoteState.Domain.User,
        ): RemoteLong

Creates a named RemoteLong with an initial value. Named remote longs can be set via AndroidRemoteContext.setNamedLong.

Parameters

name The unique name for this remote long.
defaultValue The initial Long value for the named remote long.
domain The domain of the named long (defaults to Domain.User).

Return

A RemoteLong representing the named long.

Content updated: