feat(notifications) trigger iframe api event when a notification occurs (#12952)

* feat(notifications) trigger iframe api event when a notification occurs

* remove useless comment

* fix typo
This commit is contained in:
Avram Tudor
2023-02-27 15:31:54 +02:00
committed by GitHub
parent f14b69166c
commit 336fa304ce
3 changed files with 27 additions and 4 deletions

View File

@@ -1229,6 +1229,22 @@ class API {
});
}
/**
* Notify the external app that a notification has been triggered.
*
* @param {string} title - The notification title.
* @param {string} description - The notification description.
*
* @returns {void}
*/
notifyNotificationTriggered(title: string, description: string) {
this._sendEvent({
description,
name: 'notification-triggered',
title
});
}
/**
* Notify external application that the video quality setting has changed.
*