subscribe To Email Messages
suspend fun SudoEmailClient.subscribeToEmailMessages(id: String, onConnectionChange: (status: Subscriber.ConnectionState) -> Unit = {}, onEmailMessageChanged: (emailMessage: EmailMessage, type: EmailMessageSubscriber.ChangeType) -> Unit)
Subscribes to be notified of new and deleted EmailMessages.
Parameters
id
String Unique identifier for the subscriber.
on Connection Change
Lambda that is called when the subscription connection state changes.
on Email Message Changed
Lambda that receives updates as EmailMessages are modified.