SOCommDeviceCommunication
class SOCommDeviceCommunication(api: BaseSOCommOutsideAPI, pictureDownloadBatchSize: Int = 20, videoDownloadBatchSize: Int = 1) : DeviceCommunication
The implementation of the DeviceCommunication interface to use the SOCommMediaClient with an SOComm device.
Parameters
api
The instance of an SOCommOutsideAPI to use for the media-client connection
pictureDownloadBatchSize
The number of pictures to request in one batch when downloading full resolution pictures. Defaults to 20. Only change this when you are aware of the consequences of a too large batch size.
videoDownloadBatchSize
The number of videos to request in one batch when downloading full resolution videos. Defaults to 1. Only change this when you are aware of the consequences of a too large batch size.
See also
Constructors
Link copied to clipboard
constructor(api: BaseSOCommOutsideAPI, pictureDownloadBatchSize: Int = 20, videoDownloadBatchSize: Int = 1)
Functions
Link copied to clipboard
Link copied to clipboard
open override fun fullResolutionItemReceivedObservable(mediaType: MediaType): Flowable<DeviceCommunication.DownloadedFile>
Link copied to clipboard
open override fun isInStateToDownloadFullResolutionImages(mediaType: MediaType): Observable<Boolean>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun setLocalMediaItemsProvider(mediaType: MediaType, single: Single<List<MediaItem.Local>>)
Link copied to clipboard
Link copied to clipboard
open override fun startObservingForThumbnails(shouldThumbnailBeFetched: (fileName: String) -> Single<Boolean>, maxNumberOfThumbnailsToFetch: Int, mediaType: MediaType): Completable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun thumbnailReceivedObservable(mediaType: MediaType): Observable<DeviceCommunication.NewItemAdded>