Language

MediaStore.ExtraRequestLocationMetadataAccess Field

Definition

The name of an optional intent-extra used to allow apps to request access to the location metadata of the media items selected by the user and returned by MediaStore#ACTION_PICK_IMAGES.

[Android.Runtime.Register("EXTRA_REQUEST_LOCATION_METADATA_ACCESS", ApiSince=37)]
public const string ExtraRequestLocationMetadataAccess;
[<Android.Runtime.Register("EXTRA_REQUEST_LOCATION_METADATA_ACCESS", ApiSince=37)>]
val mutable ExtraRequestLocationMetadataAccess : string

Field Value

Attributes

Remarks

The name of an optional intent-extra used to allow apps to request access to the location metadata of the media items selected by the user and returned by MediaStore.ACTION_PICK_IMAGES.

This is a boolean intent extra which when set to true informs the photopicker that the app is requesting location information for the media items selected by the user. The default value for this extra will always be false i.e. not sharing the location metadata of the selected media items with the calling app.

For MediaStore.ACTION_PICK_IMAGES: This extra is always required to request location metadata. If excluded, location metadata is redacted by default.

Note on User Choice: For MediaStore.ACTION_PICK_IMAGES, using this intent extra does not guarantee that the calling app will get the location information. The photopicker reserves the right to inform the user of this request via the UI. The user's choice to allow or deny location sharing in the picker UI is final.

If location access is ultimately granted, calling apps can extract this metadata when the selected media files are opened using the returned picker URIs.

Android reference for android.provider.MediaStore.EXTRA_REQUEST_LOCATION_METADATA_ACCESS.

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