Function

ValueChange

Creates an Action that updates the value of a MutableRemoteState to a new RemoteState.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

ValueChange

Android
public fun <T> ValueChange(
    remoteState: MutableRemoteState<T>,
    updatedValue: RemoteState<T>,
): Action

Creates an Action that updates the value of a MutableRemoteState to a new RemoteState.

Parameters

remoteState The mutable remote state to be updated.
updatedValue The new remote state value to apply.

Returns

An Action representing the value change.