DownloadManager.Request.SetRequiresCharging(Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
請指定執行此下載時,裝置必須插上電源。
[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
參數
- requiresCharging
- Boolean
布林值:不管裝置是否插上。
傳回
這個 Android.App.DownloadManager.Request 實例,允許通話串接。
- 屬性
備註
請指定執行此下載時,裝置必須插上電源。 此預設為 false。
另請參閱:
Android 參考資料。android.app.DownloadManager.Request.setRequiresCharging
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。