feat(iframe-api): Add deviceListChanged event.

This commit is contained in:
Hristo Terezov
2019-03-29 15:42:02 +00:00
parent 4967488e56
commit a7aaf31c79
8 changed files with 50 additions and 13 deletions
+13
View File
@@ -386,6 +386,19 @@ class API {
});
}
/**
* Notify external application (if API is enabled) that the device list has
* changed.
*
* @param {Object} devices - The new device list.
* @returns {void}
*/
notifyDeviceListChanged(devices: Object) {
this._sendEvent({
name: 'device-list-changed',
devices });
}
/**
* Notify external application (if API is enabled) that user changed their
* nickname.
+1
View File
@@ -50,6 +50,7 @@ const events = {
'avatar-changed': 'avatarChanged',
'audio-availability-changed': 'audioAvailabilityChanged',
'audio-mute-status-changed': 'audioMuteStatusChanged',
'device-list-changed': 'deviceListChanged',
'display-name-change': 'displayNameChange',
'email-change': 'emailChange',
'feedback-submitted': 'feedbackSubmitted',