deactivate

Deactivates the feature on the connected device.

During the call, feature emits LoadingState.InProgress. On success, feature emits null with LoadingState.Done.

If the feature is already inactive this call is a no-op and still returns ProcessingFeatureActivationResult.Success.

While the feature is suspended (see featureSuspender) deactivation is also refused and this returns ProcessingFeatureActivationResult.Failure without touching the device.

Return

ProcessingFeatureActivationResult.Success when the device acknowledges the change (or it was already inactive); ProcessingFeatureActivationResult.Failure otherwise.