Condividi tramite


DownloadManager.GetRecommendedMaxBytesOverMobile(Context) Method

Definition

Returns recommended maximum size, in bytes, of downloads that may go over a mobile connection; or null if there's no recommended limit.

[Android.Runtime.Register("getRecommendedMaxBytesOverMobile", "(Landroid/content/Context;)Ljava/lang/Long;", "")]
public static Java.Lang.Long? GetRecommendedMaxBytesOverMobile (Android.Content.Context? context);
[<Android.Runtime.Register("getRecommendedMaxBytesOverMobile", "(Landroid/content/Context;)Ljava/lang/Long;", "")>]
static member GetRecommendedMaxBytesOverMobile : Android.Content.Context -> Java.Lang.Long

Parameters

context
Context

the Context to use for accessing the ContentResolver

Returns

recommended maximum size, in bytes, of downloads that may go over a mobile connection; or null if there's no recommended limit.

Attributes

Remarks

Returns recommended maximum size, in bytes, of downloads that may go over a mobile connection; or null if there's no recommended limit. The user will have the option to bypass this limit.

Java documentation for android.app.DownloadManager.getRecommendedMaxBytesOverMobile(android.content.Context).

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