MediaStore.GetVersion 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| GetVersion(Context, String) |
返回描述 |
| GetVersion(Context) |
返回描述 |
GetVersion(Context, String)
返回描述 MediaStore 状态的不透明版本字符串。
[Android.Runtime.Register("getVersion", "(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=29)]
public static string GetVersion(Android.Content.Context context, string volumeName);
[<Android.Runtime.Register("getVersion", "(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=29)>]
static member GetVersion : Android.Content.Context * string -> string
参数
- context
- Context
内容解析程序发送媒体提供程序请求的上下文。
- volumeName
- String
要为其获取不透明的版本字符串的特定卷。
必须是从 #getExternalVolumeNames(Context)中返回的值之一。
返回
为请求的卷返回的不透明版本文本;如果未装载请求的卷,则为 null。
- 特性
注解
返回描述 MediaStore 状态的不透明版本字符串。
从 MediaStore 其自己的缓存中导入数据的应用程序可以使用它来检测 MediaStore 是否发生了重大更改,并且应重新扫描该数据。
不应对版本的含义做出其他假设。
Java文档android.provider.MediaStore.getVersion(android.content.Context, java.lang.String)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
GetVersion(Context)
返回描述 MediaStore 状态的不透明版本字符串。
[Android.Runtime.Register("getVersion", "(Landroid/content/Context;)Ljava/lang/String;", "")]
public static string GetVersion(Android.Content.Context context);
[<Android.Runtime.Register("getVersion", "(Landroid/content/Context;)Ljava/lang/String;", "")>]
static member GetVersion : Android.Content.Context -> string
参数
- context
- Context
用于执行查询的上下文。
返回
为主要外部卷返回的不透明版本文本;如果未装载主外部卷,则它可以为 null。
- 特性
注解
返回描述 MediaStore 状态的不透明版本字符串。
从 MediaStore 其自己的缓存中导入数据的应用程序可以使用它来检测 MediaStore 是否发生了重大更改,并且应重新扫描该数据。
不应对版本的含义做出其他假设。
此方法返回版本; MediaStore#VOLUME_EXTERNAL_PRIMARY若要获取不同卷的版本,请使用 #getVersion(Context, String)。
Java文档android.provider.MediaStore.getVersion(android.content.Context)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。