Outils pour utilisateurs

Outils du site


fr:code:system:notify

Ceci est une ancienne révision du document !


Notify [En cours de Traduction Wismerheal][WSL]

Cet objet vous permet d'envoyer des notifications système. Cela ne fonctionne que sur GNU/Linux.

Fonctions

Notify

Fonction de construction.

Syntaxe

var myObject = new Notify();
var myObject = new Notify(parameters);

Arguments

  1. parameters - (object) les paramètres de message

Example

var myObject = new Notify();
var myObject = new Notify({
	title: "Hello",
	text: "Hello automation world!"
});

Methods

show

Shows the notification.

Syntax

myObject.show();
myObject.show(parameters);

Arguments

  1. parameters - (object) the message parameters

Returns

  • (Notify) this Notify

Exceptions

  • (NotificationError) unable to show the notification

Example

myObject.show();
myObject.show({
	title: "Hello",
	text: "Hello automation world!"
});

Notes

If you want to update a notification's text re-use a single Notify object and call show to change the text.

fr/code/system/notify.1332512134.txt.gz · Dernière modification : 2021/02/13 11:23 (modification externe)