publishPresence method Null safety
- String description
Publishes a custom presence state.
Param description
The extension information of the presence state. It can be set as nil.
Throws A description of the exception. See {@link EMError}.
Implementation
Future<void> publishPresence(
String description,
) async {
Map req = {'desc': description};
Map result = await _channel.invokeMethod(
ChatMethodKeys.presenceWithDescription, req);
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}