removeFeatureState

abstract fun <FS : FeatureState, FSK : FeatureStateKey<FS>> FeaturesetFeature<FS>.removeFeatureState(stateKey: FSK? = null, callback: FeatureStateOperationCallback = FeatureStateOperationCallback { }): Cancelable

Removes entries from a feature state based on the FeaturesetFeature.

Removes a specified property or all property from a feature's state object, depending on the value of stateKey.

Note that updates to feature state are asynchronous, so changes made by this method might not be immediately visible using getFeatureState.

Return

A Cancelable object that could be used to cancel the pending operation.

Parameters

stateKey

The typed key of the property to remove. If null, all feature's state object properties are removed.

callback

The FeatureStateOperationCallback called when the operation completes or ends.