start Watching Presences
abstract fun startWatchingPresences(contactIds: List<String>, handler: CompletionHandler<Presence>): List<PresenceHandle>
Content copied to clipboard
Start watching presence status update of the list of contact ids that are provided as input. Only valid contact Ids will be watched. Check PresenceHandle.isValid flag to know which contact Ids are valid. Same contact id can be watched multiple times and it will return different PresenceHandle objects. The application has to ensure to call the stopWatchingPresences API for the handles when not needed.
Since
3.10.0
Parameters
contact Ids
: List of contacts ids whose presence states are to be watched. Each contact Id is a Base64 decoded GUID string
handler
: Callback that is triggered when the presence state of any of the provided contact id is changed.