/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"nsISupports.idl"
interface nsIPrincipal;
[scriptable, uuid(55051271-52a2-48c6-9a47-2aff6baf1d7b)]
interface nsINotificationHandler : nsISupports
{ /** *Eitherpingtheserviceworkercorrespondingtothenotification,oropen *anewwindowifnoneisfound. * *TheprincipalandnotificationIDmustmatchthevaluesstoredinDBto *calltheserviceworker,otherwiseit'llbehaveasifnoneisfound. * *@paramaPrincipalTheprincipalthatthisnotificationisfor. *@paramaNotificationIDTheIDforthenotification. *Correspondingto`nsINotificationStorageEntry.id`and *`nsIAlertNotification.id`. *@paramaActionNameThenotificationactionincasetheactionbuttonis *clicked. *@paramaAutoClosedWhetherthenotificationisauto-closedbysystemafter *aclick,e.g.onWindows.Checkingthiswillremovethe *notificationfromtheDB.
*/
Promise respondOnClick(
in nsIPrincipal aPrincipal,
in AString aNotificationId,
in AString aActionName,
in boolean aAutoClosed
);
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.