SOCommMediaClientBuilder

A builder class for the SOCommMediaClient.

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
Link copied to clipboard
fun debugLogs(sink: (tag: String, message: String) -> Unit?): SOCommMediaClientBuilder

If you want enable debug-logs to be logged, provide a lambda here.

Link copied to clipboard

Declares the instance of DeviceCommunication that should be used for this SOCommMediaClient.

Link copied to clipboard
fun errorLogs(sink: (tag: String, message: String) -> Unit?): SOCommMediaClientBuilder

If you want enable error-logs to be logged, provide a lambda here.

Link copied to clipboard

The name of the folder / gallery to use to store the images in for this SOCommMediaClientBuilder.

Link copied to clipboard
fun maxNumberOfThumbnailsToFetch(maxNumberOfThumbnailsToFetch: Int): SOCommMediaClientBuilder

The maximum number of thumbnails to be fetched after connecting to the remote devices.

Link copied to clipboard

Sets the MediaFileNameHandler to be used in this MediaClient. This is needed for this MediaClient to be able to handle already existing media items that are stored on the smartphone, but originated from a different remove device (family), which has a different file name structure.

Link copied to clipboard

The mediaTypes this SOCommMediaClient should handle. This must be set, and can be set to either:

Link copied to clipboard
fun thumbnailCache(enabled: Boolean, cacheFolder: File?, maxCacheSize: Long?): SOCommMediaClientBuilder

Defines the cache that should be used to cache thumbnails. By default, cache is enabled and will be placed in the applications cache folder (in a subfolder "MediaClientCache") with max 25 MByte cache size. If you want to disable caching at all, or define a custom size / location, use this method.

Link copied to clipboard
fun warningLogs(sink: (tag: String, message: String) -> Unit?): SOCommMediaClientBuilder

If you want enable warning-logs to be logged, provide a lambda here.