1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-12 12:51:22 +04:00
Files
flipperzero-firmware/documentation/js/js_notification.md

35 lines
550 B
Markdown
Raw Normal View History

# Notification module {#js_notification}
```js
let notify = require("notification");
```
# Methods
## success
"Success" flipper notification message.
### Examples:
```js
notify.success();
```
## error
"Error" flipper notification message.
### Examples:
```js
notify.error();
```
## blink
Blink notification LED.
### Parameters
- Blink color (blue/red/green/yellow/cyan/magenta)
- Blink type (short/long)
### Examples:
```js
notify.blink("red", "short"); // Short blink of red LED
notify.blink("green", "short"); // Long blink of green LED
```