Ce que fait la commande
NotificationAsync prend title (une chaîne), et rend un entier. C'est la première de 2 formes.
Syntaxe
1
NotificationAsync(title string) → integer2
NotificationAsync(title string, optionsJson string) → integerParamètres
| Nom | Type | Dans les formes |
|---|---|---|
| title | string | toutes |
| optionsJson | string | 2 |
Chaque forme rend
integer
Exemple · engendré
Forme 1 : la plus courte
DO Print(NotificationAsync("value")) Sync()LOOPForme 2 : avec tous les arguments
DO Print(NotificationAsync("value", "{}")) Sync()LOOPNotificationAsync est appelé et sa réponse est affichée à chaque image. La boucle DO … LOOP n'est pas décorative : un programme BASIC classique s'arrête dès qu'il n'a plus de lignes, et c'est Sync() qui dessine l'image.