This data type allows the user to manage the location and content of a Media-type file that may be a photo or video stored in the device.
This data type does not have a constructor. It just may be instantiated as return of the broker.media.open() services.
Address of the file system of the device where media files is stored.
|MediaFileSaveException – Has been an exception when trying to save media file.|
The Media files may be a picture or a video. This method enables the user to ask if it is a picture.
|Boolean||Positive boolean value if it is a picture.|
The Media files may be a picture or a file. This method enables the user to ask if it is a video.
|Boolean||Positive boolean value if it is a video.|
It saves a copy of the photo or video in the gallery of the device.
|String||URL with the location of the media file.|
|GallerySaveError – Error trying to save media file in gallery.|
|GalleryAccessDenied – Error trying to access media gallery without permission.|
It returns true if the file is in the temporary files or in the gallery of the device. Otherwise, it returns false.
|Boolean||Positive boolean value if the file exists.|