ContentScannerService

interface ContentScannerService

Functions

Link copied to clipboard
abstract fun enableScanner(enabled: Boolean)
Link copied to clipboard
abstract fun getCachedScanResultForFile(mxcUrl: String): ScanStatusInfo?
Link copied to clipboard
abstract fun getContentScannerServer(): String?
Link copied to clipboard
abstract fun getLiveStatusForFile(    mxcUrl: String,     fetchIfNeeded: Boolean = true,     fileInfo: ElementToDecrypt? = null): LiveData<Optional<ScanStatusInfo>>
Link copied to clipboard
abstract suspend fun getScanResultForAttachment(mxcUrl: String, fileInfo: ElementToDecrypt? = null): ScanStatusInfo
Link copied to clipboard
abstract suspend fun getServerPublicKey(forceDownload: Boolean = false): String?

Get the current public curve25519 key that the AV server is advertising.

Link copied to clipboard
abstract fun isScannerEnabled(): Boolean
Link copied to clipboard
abstract fun setScannerUrl(url: String?)

Properties

Link copied to clipboard
abstract val serverPublicKey: String?