Android Guides | Samples

Android.App.DownloadManager.Request.SetAllowedNetworkTypes Method

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

Syntax

[Android.Runtime.Register("setAllowedNetworkTypes", "(I)Landroid/app/DownloadManager$Request;", "GetSetAllowedNetworkTypes_IHandler")]
public virtual DownloadManager+Request SetAllowedNetworkTypes ([Android.Runtime.GeneratedEnum] DownloadNetwork flags)

Parameters

flags
any combination of the NETWORK_* bit flags.

Remarks

Restrict the types of networks over which this download may proceed. By default, all network types are allowed. Consider using Request.SetAllowedOverMetered(Boolean) instead, since it's more flexible.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9