Notify for detecting suspend.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user