MediaStore.GetVersion Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetVersion(Context) |
Return an opaque version string describing the |
GetVersion(Context, String) |
Return an opaque version string describing the |
GetVersion(Context)
Return an opaque version string describing the MediaStore
state.
[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
Parameters
- context
- Context
Context to use for performing the query.
Returns
- Attributes
Remarks
Return an opaque version string describing the MediaStore
state.
Applications that import data from MediaStore
into their own caches can use this to detect that MediaStore
has undergone substantial changes, and that data should be rescanned.
No other assumptions should be made about the meaning of the version.
This method returns the version for MediaStore#VOLUME_EXTERNAL_PRIMARY
; to obtain a version for a different volume, use #getVersion(Context, String)
.
Java documentation for android.provider.MediaStore.getVersion(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
GetVersion(Context, String)
Return an opaque version string describing the MediaStore
state.
[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
Parameters
- context
- Context
- volumeName
- String
specific volume to obtain an opaque version string for.
Must be one of the values returned from
#getExternalVolumeNames(Context)
.
Returns
- Attributes
Remarks
Return an opaque version string describing the MediaStore
state.
Applications that import data from MediaStore
into their own caches can use this to detect that MediaStore
has undergone substantial changes, and that data should be rescanned.
No other assumptions should be made about the meaning of the version.
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.