//sdk/com.adobe.express.embedsdk.nativeeditor.domain.model/RemoveOrReplaceBackgroundState
sealed class RemoveOrReplaceBackgroundState : FeatureState
Common state for image background modification operations (remove and replace background). Both features share the same subject mask preparation pipeline and thus have identical states.
| Idle |
| DownloadingModel |
| Classifying |
| SelectingSubject |
| Refining |
| RunningInference |
| Applying |
| Success |
| Error |
| Name | Summary |
|---|---|
| Applying | data object Applying : RemoveOrReplaceBackgroundState, FeatureState.InProgress |
| Classifying | data object Classifying : RemoveOrReplaceBackgroundState, FeatureState.InProgress |
| DownloadingModel | data object DownloadingModel : RemoveOrReplaceBackgroundState, FeatureState.InProgress |
| Error | data class Error(val message: String, val cause: Throwable? = null) : RemoveOrReplaceBackgroundState, FeatureState.Error |
| Idle | data object Idle : RemoveOrReplaceBackgroundState, FeatureState.Idle |
| Refining | data object Refining : RemoveOrReplaceBackgroundState, FeatureState.InProgress |
| RunningInference | data object RunningInference : RemoveOrReplaceBackgroundState, FeatureState.InProgress |
| SelectingSubject | data object SelectingSubject : RemoveOrReplaceBackgroundState, FeatureState.InProgress |
| Success | data object Success : RemoveOrReplaceBackgroundState, FeatureState.Success |