DownloadManager.Request.SetAllowedNetworkTypes(DownloadNetwork) Method

Definition

Restrict the types of networks over which this download may proceed.

[Android.Runtime.Register("setAllowedNetworkTypes", "(I)Landroid/app/DownloadManager$Request;", "GetSetAllowedNetworkTypes_IHandler")]
public virtual Android.App.DownloadManager.Request? SetAllowedNetworkTypes (Android.App.DownloadNetwork flags);
[<Android.Runtime.Register("setAllowedNetworkTypes", "(I)Landroid/app/DownloadManager$Request;", "GetSetAllowedNetworkTypes_IHandler")>]
abstract member SetAllowedNetworkTypes : Android.App.DownloadNetwork -> Android.App.DownloadManager.Request
override this.SetAllowedNetworkTypes : Android.App.DownloadNetwork -> Android.App.DownloadManager.Request

Parameters

flags
DownloadNetwork

any combination of the NETWORK_* bit flags.

Returns

Attributes

Remarks

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