SOCommFileApi

interface SOCommFileApi

An "inner API" to the SOCommOutsideAPI which provide the functionality to send files to the remote device as well as subscribe to file downloads from the remote device.

See also

Types

Link copied to clipboard
data class ReceivedFile(val file: File, val fileName: String)

A wrapper object to signal a received (downloaded) file from the remote device.

Functions

Link copied to clipboard
abstract fun sendFile(topic: FileTopic, uri: Uri): Flowable<Int>

Sends a given file (defined by the given uri) to the given remote device.

abstract fun sendFile(topic: FileTopic, file: File): Flowable<Int>

Sends a given file to the given remote device.

Link copied to clipboard
abstract fun subscribeToFiles(topic: FileTopic): Flowable<SOCommFileApi.ReceivedFile>

Subscribes to download events for files on a given FileTopic.