Media Store
MediaStore peripheral interface for drones.
Aggregates information on all medias stored on a device, allowing the application to browse such media, to to download them locally on the device, ot to delete them physically from the drone where they are stored.
This peripheral can be obtained from a drone using: drone.getPeripheral(MediaStore::class.java)
See also
Drone. get Peripheral
Types
Properties
Functions
Link copied to clipboard
abstract fun browse(storageType: UserStorage.Type? = null, observer: Ref.Observer<List<@JvmSuppressWildcards MediaItem>>): Ref<List<@JvmSuppressWildcards MediaItem>>
Creates a new media list for browsing medias.
Link copied to clipboard
abstract fun delete(resources: Collection<MediaItem.Resource>, observer: Ref.Observer<MediaDeleter>): Ref<MediaDeleter>
Deletes resources from the drone's storage.
Link copied to clipboard
abstract fun download(resources: Collection<MediaItem.Resource>, type: MediaStore.DownloadType, destination: MediaDestination, observer: Ref.Observer<MediaDownloader>): Ref<MediaDownloader>
Link copied to clipboard
Retrieves a media thumbnail.
abstract fun fetchThumbnailOf(resource: MediaItem.Resource, observer: Ref.Observer<Bitmap>): Ref<Bitmap>
Retrieves a media resource thumbnail.
Link copied to clipboard
abstract fun upload(resources: Collection<File>, target: MediaItem, observer: Ref.Observer<ResourceUploader>): Ref<ResourceUploader>
Upload media resources to the drone's storage.
Link copied to clipboard
Wipes all media from the drone's storage.