DownloadConditions.Builder

public static class DownloadConditions.Builder extends Object

Builder of DownloadConditions.

Public Constructor Summary

Public Method Summary

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 ()

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.