Language

DownloadManager.Request.SetRequiresDeviceIdle(Boolean) Method

Definition

Sets whether the device must be idle for the download to run.

[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

Sets whether the device must be idle for the download to run. 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.

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.

Applies to