MediaData Class |
MediaData provides read access to the result set returned by the AndroidGalleryManager.
Related methods : getFiles, getImageAndVideoFiles, getImageFiles, getVideoFiles and getAllFolders.
Namespace: AndroidLocalGalleryPlugin
public class MediaData : MonoBehaviour
The MediaData type exposes the following members.
Name | Description | |
---|---|---|
updateDataWithArrayString |
Convert from string[] to MediaData.
| |
updateDataWithMediaData |
Updates the this.mediaData with mediaData.
|
Name | Description | |
---|---|---|
data | Path to the file on disk. Note that apps may not have filesystem permissions to directly access this path. You need to check runtime permission if you want to access this path Type: TEXT Base64UTF8String | |
date_added | The time the file was added to the media provider. Units are seconds since 1970. Type: INTEGER (long) | |
date_modified | The time the file was last modified. Units are seconds since 1970. NOTE: This is for internal use by the media scanner. Type: INTEGER (long) | |
date_taken | The date and time that the image was taken in units of milliseconds since jan 1, 1970. Type: INTEGER (long) | |
display_name | The display name of the file. Type: TEXT Base64UTF8String | |
height | The height of the image/video in pixels. Type: INTEGER | |
id | The unique ID for a row. Type: INTEGER (long) | |
is_directory | The flag is true if data(path) is a directory. If the flag is false, it's a file. Checked by native library whether the file denoted by this abstract data is a directory. Type: BOOL | |
media_type | The media type (audio, video, image or playlist) of the file, or 0 for not a media file Type: INTEGER | |
mime_type | The MIME type of the file. Type: TEXT | |
orientation | The orientation for the image expressed as degrees. Only degrees 0, 90, 180, 270 will work. Type: INTEGER | |
size | The size of the file in bytes. Type: INTEGER (long) | |
title | The title of the content. Type: TEXT Base64UTF8String | |
width | The width of the image/video in pixels. Type: INTEGER |