removeFeatureState

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

Removes entries from a feature state based on the InteractiveFeature.

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 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.