MediaStore Class

Definition

The Media provider contains meta data for all available media on both internal and external storage devices.

[Android.Runtime.Register("android/provider/MediaStore", DoNotGenerateAcw=true)]
public sealed class MediaStore : Java.Lang.Object
[<Android.Runtime.Register("android/provider/MediaStore", DoNotGenerateAcw=true)>]
type MediaStore = class
    inherit Object
Inheritance
MediaStore
Attributes

Remarks

Android platform documentation

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.

Constructors

MediaStore()

Fields

ActionImageCapture

Standard Intent action that can be sent to have the camera application capture an image and return it.

ActionImageCaptureSecure

Intent action that can be sent to have the camera application capture an image and return it when the device is secured (e.g. with a pin, password, pattern, or face unlock).

ActionPickImages
ActionPickImagesSettings
ActionReview
ActionReviewSecure
ActionVideoCapture

Standard Intent action that can be sent to have the camera application capture a video and return it.

Authority
ExtraAcceptOriginalMediaFormat
ExtraBrightness
ExtraDurationLimit

Specify the maximum allowed recording duration in seconds.

ExtraFinishOnCompletion

The name of the Intent-extra used to control the onCompletion behavior of a MovieView.

ExtraFullScreen

The name of an Intent-extra used to control the UI of a ViewImage.

ExtraMediaAlbum

The name of the Intent-extra used to define the album

ExtraMediaArtist

The name of the Intent-extra used to define the artist

ExtraMediaCapabilities
ExtraMediaCapabilitiesUid
ExtraMediaFocus

The name of the Intent-extra used to define the search focus.

ExtraMediaGenre

The name of the Intent-extra used to define the genre.

ExtraMediaPlaylist

The name of the Intent-extra used to define the playlist.

ExtraMediaRadioChannel

The name of the Intent-extra used to define the radio channel.

ExtraMediaTitle

The name of the Intent-extra used to define the song title

ExtraOutput

The name of the Intent-extra used to indicate a content resolver Uri to be used to store the requested image or video.

ExtraPickImagesMax
ExtraScreenOrientation

The name of the Intent-extra used to control the orientation of a ViewImage or a MovieView.

ExtraShowActionIcons

The name of an Intent-extra used to control the UI of a ViewImage.

ExtraSizeLimit

Specify the maximum allowed size.

ExtraVideoQuality

The name of the Intent-extra used to control the quality of a recorded video.

IntentActionMediaPlayFromSearch

An intent to perform a search for music media and automatically play content from the result when possible.

IntentActionMediaSearch

Activity Action: Perform a search for media.

IntentActionMusicPlayer
Obsolete.

Activity Action: Launch a music player.

IntentActionStillImageCamera

The name of the Intent action used to launch a camera in still image mode.

IntentActionStillImageCameraSecure

The name of the Intent action used to launch a camera in still image mode for use when the device is secured (e.g. with a pin, password, pattern, or face unlock).

IntentActionTextOpenFromSearch

An intent to perform a search for readable media and automatically play content from the result when possible.

IntentActionVideoCamera

The name of the Intent action used to launch a camera in video mode.

IntentActionVideoPlayFromSearch

An intent to perform a search for video media and automatically play content from the result when possible.

MatchDefault
MatchExclude
MatchInclude
MatchOnly
MediaIgnoreFilename

Name of the file signaling the media scanner to ignore media in the containing directory and its subdirectories.

MediaScannerVolume

Name of current volume being scanned by the media scanner.

MetaDataReviewGalleryPrewarmService
MetaDataStillImageCameraPrewarmService
QueryArgIncludeRecentlyUnmountedVolumes
QueryArgMatchFavorite
QueryArgMatchPending
QueryArgMatchTrashed
QueryArgRelatedUri
UnknownString

The string that is used when a media attribute is not known.

VolumeExternal
VolumeExternalPrimary
VolumeInternal

Properties

AuthorityUri
Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
MediaScannerUri

Uri for querying the state of the media scanner.

PeerReference (Inherited from Object)
PickImagesMaxLimit
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

CanManageMedia(Context)
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
CreateDeleteRequest(ContentResolver, ICollection<Uri>)
CreateFavoriteRequest(ContentResolver, ICollection<Uri>, Boolean)
CreateTrashRequest(ContentResolver, ICollection<Uri>, Boolean)
CreateWriteRequest(ContentResolver, ICollection<Uri>)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetDocumentUri(Context, Uri)
GetExternalVolumeNames(Context)
GetGeneration(Context, String)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetMediaUri(Context, Uri)
GetOriginalMediaFormatFileDescriptor(Context, ParcelFileDescriptor)
GetRecentExternalVolumeNames(Context)
GetRedactedUri(ContentResolver, IList<Uri>)
GetRedactedUri(ContentResolver, Uri)
GetRequireOriginal(Uri)
GetVersion(Context)

Get the media provider's version.

GetVersion(Context, String)
GetVolumeName(Uri)
IsCurrentCloudMediaProviderAuthority(ContentResolver, String)
IsCurrentSystemGallery(ContentResolver, Int32, String)
IsSupportedCloudMediaProviderAuthority(ContentResolver, String)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
NotifyCloudMediaChangedEvent(ContentResolver, String, String)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetIncludePending(Uri)
SetRequireOriginal(Uri)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to