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
open override fun availableItemsObservable(mediaType: MediaType): Observable<List<String>>
Link copied to clipboard
open override fun isInStateToDownloadFullResolutionImages(mediaType: MediaType): Observable<Boolean>
Link copied to clipboard
open override fun isInStateToDownloadThumbnails(mediaType: MediaType): Observable<Boolean>
Link copied to clipboard
open override fun publishFileReceived(fileName: String, mediaType: MediaType): Completable
open override fun setItemsReceivedButNotAcknowledgedProvider(single: Single<List<String>>)
Link copied to clipboard
open override fun setLocalMediaItemsProvider(mediaType: MediaType, single: Single<List<MediaItem.Local>>)
Link copied to clipboard
open override fun startObservingForFullResolutionImages(mediaType: MediaType): Completable
Link copied to clipboard
open override fun startObservingForThumbnails(shouldThumbnailBeFetched: (fileName: String) -> Single<Boolean>, maxNumberOfThumbnailsToFetch: Int, mediaType: MediaType): Completable
Link copied to clipboard
open override fun stopObservingForFullResolutionImages(mediaType: MediaType): Completable
Link copied to clipboard
open override fun stopObservingForThumbnails(mediaType: MediaType): Completable
Link copied to clipboard