public static class DownloadConditions.Builder extends Object
Builder of DownloadConditions
.
Public Constructor Summary
Builder()
|
Public Method Summary
DownloadConditions |
build()
Builds
DownloadConditions .
|
DownloadConditions.Builder |
requireCharging()
Sets that a device must be charging for downloading to occur.
|
DownloadConditions.Builder |
requireWifi()
Sets that a device must use wifi for downloading to occur.
|
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public DownloadConditions build ()
Builds DownloadConditions
.
public DownloadConditions.Builder requireCharging ()
Sets that a device must be charging for downloading to occur.
Only works on Android N and above.
public DownloadConditions.Builder requireWifi ()
Sets that a device must use wifi for downloading to occur.