public final class StorageController extends Object
GeckoRuntime.getStorageController()
.Modifier and Type | Class and Description |
---|---|
static class |
StorageController.ClearFlags
Flags used for data clearing operations.
|
Constructor and Description |
---|
StorageController() |
Modifier and Type | Method and Description |
---|---|
GeckoResult<Void> |
clearData(long flags)
Clear data for all hosts.
|
GeckoResult<Void> |
clearDataFromHost(String host,
long flags)
Clear data owned by the given host.
|
@AnyThread @NonNull public GeckoResult<Void> clearData(long flags)
flags
- Combination of StorageController.ClearFlags
.GeckoResult
that will complete when clearing has
finished.@AnyThread @NonNull public GeckoResult<Void> clearDataFromHost(@NonNull String host, long flags)
host
- The host to be used.flags
- Combination of StorageController.ClearFlags
.GeckoResult
that will complete when clearing has
finished.