Class AndroidRemoveApplicationOptions
- java.lang.Object
-
- io.appium.java_client.appmanagement.BaseOptions<T>
-
- io.appium.java_client.appmanagement.BaseRemoveApplicationOptions<AndroidRemoveApplicationOptions>
-
- io.appium.java_client.android.appmanagement.AndroidRemoveApplicationOptions
-
public class AndroidRemoveApplicationOptions extends BaseRemoveApplicationOptions<AndroidRemoveApplicationOptions>
-
-
Constructor Summary
Constructors Constructor Description AndroidRemoveApplicationOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
build()
Creates a map based on the provided options.AndroidRemoveApplicationOptions
withKeepDataDisabled()
Forces uninstall to delete the application data and caches (the default behavior).AndroidRemoveApplicationOptions
withKeepDataEnabled()
Forces uninstall to keep the application data and caches.AndroidRemoveApplicationOptions
withTimeout(java.time.Duration timeout)
The time to wait until the app is removed (20000ms by default).
-
-
-
Method Detail
-
withTimeout
public AndroidRemoveApplicationOptions withTimeout(java.time.Duration timeout)
The time to wait until the app is removed (20000ms by default).- Parameters:
timeout
- the actual timeout value. The minimum time resolution unit is one millisecond.- Returns:
- self instance for chaining.
-
withKeepDataEnabled
public AndroidRemoveApplicationOptions withKeepDataEnabled()
Forces uninstall to keep the application data and caches.- Returns:
- self instance for chaining.
-
withKeepDataDisabled
public AndroidRemoveApplicationOptions withKeepDataDisabled()
Forces uninstall to delete the application data and caches (the default behavior).- Returns:
- self instance for chaining.
-
build
public java.util.Map<java.lang.String,java.lang.Object> build()
Description copied from class:BaseOptions
Creates a map based on the provided options.- Specified by:
build
in classBaseOptions<AndroidRemoveApplicationOptions>
- Returns:
- options mapping.
-
-