Binder Wrapper
interface BinderWrapper
Content copied to clipboard
Represents a connection to the Scatterbrain API. This class should only be injected by dagger only. By default this class is created as a singleton, as there is little value of concurrent connections to Scatterbrain
Types
Functions
authorizeIdentity
Link copied to clipboard
abstract suspend fun authorizeIdentity(identity: Identity, packageName: String)
Content copied to clipboard
deauthorizeIdentity
Link copied to clipboard
abstract suspend fun deauthorizeIdentity(identity: Identity, packageName: String)
Content copied to clipboard
generateIdentity
Link copied to clipboard
getIdentities
Link copied to clipboard
getIdentity
Link copied to clipboard
getPackages
Link copied to clipboard
getPermissions
Link copied to clipboard
abstract suspend fun getPermissions(identity: Identity): List<NamePackage>
Content copied to clipboard
getScatterMessages
Link copied to clipboard
abstract suspend fun getScatterMessages(application: String): List<ScatterMessage>
Content copied to clipboard
abstract suspend fun getScatterMessages(application: String, since: Date): List<ScatterMessage>
Content copied to clipboard
abstract suspend fun getScatterMessages(application: String, start: Date, end: Date): List<ScatterMessage>
Content copied to clipboard
isConnected
Link copied to clipboard
observeIdentities
Link copied to clipboard
observeMessages
Link copied to clipboard
abstract suspend fun observeMessages(application: String): Flow<List<ScatterMessage>>
Content copied to clipboard
removeIdentity
Link copied to clipboard
rescanPeers
Link copied to clipboard
abstract suspend fun rescanPeers()
Content copied to clipboard
sendMessage
Link copied to clipboard
abstract suspend fun sendMessage(messages: List<ScatterMessage>, identity: UUID)
Content copied to clipboard
abstract suspend fun sendMessage(messages: List<ScatterMessage>, identity: Identity)
Content copied to clipboard
abstract suspend fun sendMessage(message: ScatterMessage, identity: UUID)
Content copied to clipboard
abstract suspend fun sendMessage(message: ScatterMessage, identity: Identity)
Content copied to clipboard
startDiscover
Link copied to clipboard
abstract suspend fun startDiscover()
Content copied to clipboard
startPassive
Link copied to clipboard
abstract suspend fun startPassive()
Content copied to clipboard
startService
Link copied to clipboard
abstract suspend fun startService()
Content copied to clipboard
stopDiscover
Link copied to clipboard
abstract suspend fun stopDiscover()
Content copied to clipboard
stopPassive
Link copied to clipboard
abstract suspend fun stopPassive()
Content copied to clipboard
stopService
Link copied to clipboard
abstract suspend fun stopService()
Content copied to clipboard
unbindService
Link copied to clipboard
abstract suspend fun unbindService()
Content copied to clipboard
unregister
Link copied to clipboard
Inheritors
BinderWrapperImpl
Link copied to clipboard