Interactive Feature Scope
The interactive feature scope provides extension functions to InteractiveFeature so that user can update feature state directly on the InteractiveFeature within this scope.
Note that this is a sealed interface, it's not expected to be implemented outside of this library.
Functions
Link copied to clipboard
abstract fun <FS : FeatureState> InteractiveFeature<FS>.removeFeatureState(stateKey: String? = null, callback: FeatureStateOperationCallback = FeatureStateOperationCallback { }): Cancelable
Removes entries from a feature state based on the InteractiveFeature.
Link copied to clipboard
abstract fun <FS : FeatureState> InteractiveFeature<FS>.resetFeatureStates(callback: FeatureStateOperationCallback = FeatureStateOperationCallback { }): Cancelable
Reset all the feature states within a style source.
Link copied to clipboard
abstract fun <FS : FeatureState> InteractiveFeature<FS>.setFeatureState(state: FS, callback: FeatureStateOperationCallback = FeatureStateOperationCallback {}): Cancelable
Sets the state map for the InteractiveFeature.