onConferenceCreated method
Returns a Stream of the NotificationServiceEventNames.conferenceCreated events. By subscribing to the returned stream you will be notified whenever a new conference is created.
Implementation
Stream<
Event<NotificationServiceEventNames,
ConferenceCreatedNotificationData>> onConferenceCreated() {
return _eventStream.addListener(
[NotificationServiceEventNames.conferenceCreated.value]).map((map) {
final event = map as Map<Object?, Object?>;
final key = NotificationServiceEventNames.valueOf(event["key"] as String);
final data = event["body"] as Map<Object?, Object?>;
return Event(key, ConferenceCreatedNotificationMapper.fromMap(data));
});
}