DownloadManager.Request.SetRequiresCharging(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.
Sets whether the device must be plugged in for the download to run.
[Android.Runtime.Register("setRequiresCharging", "(Z)Landroid/app/DownloadManager$Request;", "GetSetRequiresCharging_ZHandler", ApiSince=24)]
public virtual Android.App.DownloadManager.Request? SetRequiresCharging(bool requiresCharging);
[<Android.Runtime.Register("setRequiresCharging", "(Z)Landroid/app/DownloadManager$Request;", "GetSetRequiresCharging_ZHandler", ApiSince=24)>]
abstract member SetRequiresCharging : bool -> Android.App.DownloadManager.Request
override this.SetRequiresCharging : bool -> Android.App.DownloadManager.Request
Parameters
- requiresCharging
- Boolean
Whether the device must be plugged in for the download to run.
Returns
This Android.App.DownloadManager.Request instance, allowing calls to be chained.
- Attributes
Remarks
Sets whether the device must be plugged in for the download to run. This defaults to false.
Android reference for android.app.DownloadManager.Request.setRequiresCharging.
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.