DownloadManager.Request.SetRequiresDeviceIdle(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specify that to run, the download needs the device to be in idle mode.
[Android.Runtime.Register("setRequiresDeviceIdle", "(Z)Landroid/app/DownloadManager$Request;", "GetSetRequiresDeviceIdle_ZHandler", ApiSince=24)]
public virtual Android.App.DownloadManager.Request? SetRequiresDeviceIdle(bool requiresDeviceIdle);
[<Android.Runtime.Register("setRequiresDeviceIdle", "(Z)Landroid/app/DownloadManager$Request;", "GetSetRequiresDeviceIdle_ZHandler", ApiSince=24)>]
abstract member SetRequiresDeviceIdle : bool -> Android.App.DownloadManager.Request
override this.SetRequiresDeviceIdle : bool -> Android.App.DownloadManager.Request
Parameters
- requiresDeviceIdle
- Boolean
boolean: Whether or not the device need be within an idle maintenance window.
Returns
This Android.App.DownloadManager.Request instance, allowing calls to be chained.
- Attributes
Remarks
Specify that to run, the download needs the device to be in idle mode. This defaults to false. Idle mode is a loose definition provided by the system, which means that the device is not in use, and has not been in use for some time.
See also:
Android reference for android.app.DownloadManager.Request.setRequiresDeviceIdle.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.