语言

DownloadManager.GetRecommendedMaxBytesOverMobile(Context) 方法

定义

返回可能经过移动连接的下载的建议最大大小(以字节为单位);如果没有建议的限制,则为 null。

[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

参数

context
Context

Context用于访问ContentResolver

返回

建议的最大下载大小(以字节为单位),这些下载可能超过移动连接;如果没有建议的限制,则为 null。

特性

注解

返回可能经过移动连接的下载的建议最大大小(以字节为单位);如果没有建议的限制,则为 null。 用户可以选择绕过此限制。

Android 参考。android.app.DownloadManager.getRecommendedMaxBytesOverMobile

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于