Freigeben über


MediaStore.GetRedactedUri Method

Definition

Overloads

GetRedactedUri(ContentResolver, Uri)

Returns an EXIF redacted version of uri i.

GetRedactedUri(ContentResolver, IList<Uri>)

Returns a list of EXIF redacted version of uris i.

GetRedactedUri(ContentResolver, Uri)

Returns an EXIF redacted version of uri i.

[Android.Runtime.Register("getRedactedUri", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/net/Uri;", "", ApiSince=31)]
public static Android.Net.Uri? GetRedactedUri (Android.Content.ContentResolver resolver, Android.Net.Uri uri);
[<Android.Runtime.Register("getRedactedUri", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/net/Uri;", "", ApiSince=31)>]
static member GetRedactedUri : Android.Content.ContentResolver * Android.Net.Uri -> Android.Net.Uri

Parameters

resolver
ContentResolver

The ContentResolver used to connect with MediaStore#AUTHORITY. Typically this value is gotten from Context#getContentResolver()

uri
Uri

the Uri Uri to convert

Returns

Uri

redacted version of the uri. Returns null when the given Uri could not be found or is unsupported

Attributes

Remarks

Returns an EXIF redacted version of uri i.e. a Uri with metadata such as location, GPS datestamp etc. redacted from the EXIF headers.

A redacted Uri can be used to share a file with another application wherein exposing sensitive information in EXIF headers is not desirable. Note: 1. Redacted uris cannot be granted write access and can neither be used to perform any kind of write operations. 2. To get a redacted uri the caller must hold read permission to uri.

Java documentation for android.provider.MediaStore.getRedactedUri(android.content.ContentResolver, android.net.Uri).

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

GetRedactedUri(ContentResolver, IList<Uri>)

Returns a list of EXIF redacted version of uris i.

[Android.Runtime.Register("getRedactedUri", "(Landroid/content/ContentResolver;Ljava/util/List;)Ljava/util/List;", "", ApiSince=31)]
public static System.Collections.Generic.IList<Android.Net.Uri> GetRedactedUri (Android.Content.ContentResolver resolver, System.Collections.Generic.IList<Android.Net.Uri> uris);
[<Android.Runtime.Register("getRedactedUri", "(Landroid/content/ContentResolver;Ljava/util/List;)Ljava/util/List;", "", ApiSince=31)>]
static member GetRedactedUri : Android.Content.ContentResolver * System.Collections.Generic.IList<Android.Net.Uri> -> System.Collections.Generic.IList<Android.Net.Uri>

Parameters

resolver
ContentResolver

The ContentResolver used to connect with MediaStore#AUTHORITY. Typically this value is gotten from Context#getContentResolver()

uris
IList<Uri>

the list of Uri Uri to convert

Returns

a list with redacted version of uris, in the same order. Returns null when the corresponding Uri could not be found or is unsupported

Attributes

Remarks

Returns a list of EXIF redacted version of uris i.e. a Uri with metadata such as location, GPS datestamp etc. redacted from the EXIF headers.

A redacted Uri can be used to share a file with another application wherein exposing sensitive information in EXIF headers is not desirable. Note: 1. Order of the returned uris follow the order of the uris. 2. Redacted uris cannot be granted write access and can neither be used to perform any kind of write operations. 3. To get a redacted uri the caller must hold read permission to its corresponding uri.

Java documentation for android.provider.MediaStore.getRedactedUri(android.content.ContentResolver, java.util.List<android.net.Uri>).

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