Signal
An asynchronous signald client, for use with V1 of the signald protocol. Use the create function to create an instance.
class Signal constructor(accountId: String, socketPath: String?) : SignaldClient
Content copied to clipboard
A synchronous signald client, for use with V1 of the signald protocol. Note that the functions and the constructor can block the thread that called the function / constructor due to reads and writes responses from a UNIX socket via blocking method calls.
Parameters
Throws
if unable to connect to the socket
SignaldException
if unable to get list of accounts to cache current account data if already registered.
if unable to connect to the socket
org.inthewaves.kotlinsignald.clientprotocol.SignaldException
if unable to get list of accounts to cache current account data if already registered.
Constructors
Types
Functions
addServer
Link copied to clipboard
approveMembership
Link copied to clipboard
suspend fun approveMembership(groupID: String, members: Iterable<<ERROR CLASS>>): <ERROR CLASS>
Content copied to clipboard
fun approveMembership(groupID: String, members: Iterable<JsonAddress>): JsonGroupV2Info
Content copied to clipboard
finishLink
Link copied to clipboard
suspend fun finishLink(deviceName: String, sessionId: String): <ERROR CLASS>
Content copied to clipboard
generateLinkingUri
Link copied to clipboard
suspend fun generateLinkingUri(serverUuid: String? = null): <ERROR CLASS>
Content copied to clipboard
getAccountInfo
Link copied to clipboard
getProfile
Link copied to clipboard
suspend fun getProfile(address: <ERROR CLASS>, async: Boolean = false): <ERROR CLASS>
Content copied to clipboard
isRegisteredWithSignald
Link copied to clipboard
joinGroup
Link copied to clipboard
markRead
Link copied to clipboard
remoteDelete
Link copied to clipboard
suspend fun remoteDelete(recipient: Recipient, timestampOfTarget: Long): <ERROR CLASS>
Content copied to clipboard
Sends a remote delete message to delete a message that was previously sent to the given recipient (group or individual address).
fun remoteDelete(recipient: Recipient, timestampOfTarget: Long): SendResponse
Content copied to clipboard
Sends a remote delete message to delete a message that was previously sent to the given recipient (group or individual address).
requestSync
Link copied to clipboard
suspend fun requestSync(groups: Boolean = true, configuration: Boolean = true, contacts: Boolean = true, blocked: Boolean = true)
Content copied to clipboard
fun requestSync(groups: Boolean = true, configuration: Boolean = true, contacts: Boolean = true, blocked: Boolean = true)
Content copied to clipboard
resetSession
Link copied to clipboard
suspend fun resetSession(address: <ERROR CLASS>, timestamp: Long = Clock.System.now().toEpochMilliseconds()): <ERROR CLASS>
Content copied to clipboard
Resets a secure session with a particular user identified by the given address.
fun resetSession(address: JsonAddress, timestamp: Long = Clock.System.now().toEpochMilliseconds()): SendResponse
Content copied to clipboard
Resets a secure session with a particular user identified by the given address.
sendPayment
Link copied to clipboard
suspend fun sendPayment(recipientAddress: <ERROR CLASS>, payment: <ERROR CLASS>, when: Long = Clock.System.now().toEpochMilliseconds()): <ERROR CLASS>
Content copied to clipboard
fun sendPayment(recipientAddress: JsonAddress, payment: Payment, when: Long = Clock.System.now().toEpochMilliseconds()): SendResponse
Content copied to clipboard
setDeviceName
Link copied to clipboard
setExpiration
Link copied to clipboard
suspend fun setExpiration(recipient: Recipient, expiration: Int): <ERROR CLASS>
Content copied to clipboard
subscribeAndConsumeBlocking
Link copied to clipboard
fun subscribeAndConsumeBlocking(messageConsumer: (ClientMessageWrapper) -> Unit)
Content copied to clipboard
subscribeSuspend
Link copied to clipboard
open suspend override fun subscribeSuspend(): IncomingMessageSubscription
Content copied to clipboard
trust
Link copied to clipboard
suspend fun trust(address: <ERROR CLASS>, fingerprint: Fingerprint, trustLevel: TrustLevel = TrustLevel.TRUSTED_VERIFIED)
Content copied to clipboard
fun trust(address: JsonAddress, fingerprint: Fingerprint, trustLevel: TrustLevel = TrustLevel.TRUSTED_VERIFIED)
Content copied to clipboard
updateContact
Link copied to clipboard
suspend fun updateContact(address: <ERROR CLASS>, name: String? = null, color: String? = null, inboxPosition: Int? = null)
Content copied to clipboard
fun updateContact(address: JsonAddress, name: String? = null, color: String? = null, inboxPosition: Int? = null)
Content copied to clipboard
updateGroup
Link copied to clipboard
suspend fun updateGroup(groupID: String, groupUpdate: GroupUpdate): <ERROR CLASS>
Content copied to clipboard
Properties
accountId
Link copied to clipboard
accountInfo
Link copied to clipboard
isRegisteredWithSignald
Link copied to clipboard