Common base interface for all Remote types.
Android
public abstract class BaseRemoteState<T : Any> internal constructor() : RemoteState<T>
Common base interface for all Remote types.
Functions
getIdForCreationState
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public open fun getIdForCreationState(creationState: RemoteComposeCreationState): Int
Returns a new or cached id for this RemoteState within the RemoteComposeCreationState.
Parameters
|
|
| creationState |
The RemoteComposeCreationState for which the ID will be generated. |
Returns
getLongIdForCreationState
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public open fun getLongIdForCreationState(creationState: RemoteComposeCreationState): Long
Parameters
|
|
| creationState |
The RemoteComposeCreationState for which the ID will be generated. |
Returns
|
|
|
The ID of this remote value, for the given creationState as a long. |
getFloatIdForCreationState
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public open fun getFloatIdForCreationState(creationState: RemoteComposeCreationState): Float
Parameters
|
|
| creationState |
The RemoteComposeCreationState for which the ID will be generated. |
Returns
|
|
|
The ID of this remote value encoded in a Float NaN, for the given creationState. |
writeToDocument
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
public abstract fun writeToDocument(creationState: RemoteComposeCreationState): Int
Writes the Remote Value to the creationState and returns the allocated ID.
Parameters
|
|
| creationState |
The RemoteComposeCreationState to write to. |
Returns
|
|
|
The ID allocated by the RemoteComposeWriter. |