Notify for detecting suspend.

This commit is contained in:
damencho
2019-06-26 15:20:51 +01:00
committed by Дамян Минков
parent 9e95e7cd97
commit f77976b742
4 changed files with 15 additions and 0 deletions
+9
View File
@@ -509,6 +509,15 @@ class API {
this._sendEvent({ name: 'video-ready-to-close' });
}
/**
* Notify external application (if API is enabled) that a suspend event in host computer.
*
* @returns {void}
*/
notifySuspendDetected() {
this._sendEvent({ name: 'suspend-detected' });
}
/**
* Notify external application (if API is enabled) for audio muted status
* changed.