public class AndroidInstallApplicationOptions extends BaseInstallApplicationOptions<AndroidInstallApplicationOptions>
Constructor and Description |
---|
AndroidInstallApplicationOptions() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
build()
Creates a map based on the provided options.
|
AndroidInstallApplicationOptions |
withAllowTestPackagesDisabled()
Disables a possibility to install packages marked as test in
the manifest (the default setting).
|
AndroidInstallApplicationOptions |
withAllowTestPackagesEnabled()
Allows to install packages marked as test in the manifest.
|
AndroidInstallApplicationOptions |
withGrantPermissionsDisabled()
Does not grant all the permissions requested in the
application's manifest automatically after the installation
is completed (the default behavior).
|
AndroidInstallApplicationOptions |
withGrantPermissionsEnabled()
Grants all the permissions requested in the
application's manifest automatically after the installation
is completed under Android 6+.
|
AndroidInstallApplicationOptions |
withReplaceDisabled()
Disables the possibility to upgrade/reinstall the application
if it is already present on the device.
|
AndroidInstallApplicationOptions |
withReplaceEnabled()
Enables the possibility to upgrade/reinstall the application
if it is already present on the device (the default behavior).
|
AndroidInstallApplicationOptions |
withTimeout(java.time.Duration timeout)
The time to wait until the app is installed (60000ms by default).
|
AndroidInstallApplicationOptions |
withUseSdcardDisabled()
Forces the application to be installed to the internal memory
(the default behavior).
|
AndroidInstallApplicationOptions |
withUseSdcardEnabled()
Forces the application to be installed of SD card
instead of the internal memory.
|
public AndroidInstallApplicationOptions withReplaceEnabled()
public AndroidInstallApplicationOptions withReplaceDisabled()
public AndroidInstallApplicationOptions withTimeout(java.time.Duration timeout)
timeout
- the actual timeout value. The minimum time resolution
unit is one millisecond.public AndroidInstallApplicationOptions withAllowTestPackagesEnabled()
public AndroidInstallApplicationOptions withAllowTestPackagesDisabled()
public AndroidInstallApplicationOptions withUseSdcardEnabled()
public AndroidInstallApplicationOptions withUseSdcardDisabled()
public AndroidInstallApplicationOptions withGrantPermissionsEnabled()
public AndroidInstallApplicationOptions withGrantPermissionsDisabled()
public java.util.Map<java.lang.String,java.lang.Object> build()
BaseOptions
build
in class BaseOptions<AndroidInstallApplicationOptions>