1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 12:42:30 +04:00
Files
unleashed-firmware/documentation/js/js_notification.md
knrn64 54adc38b3a Documentation: new doc on Storage module and JS cleanup (#4161)
- Add new doc on Storage module
- Improve formatting in the JS section for better readability
2025-03-26 18:29:26 +04:00

39 lines
567 B
Markdown

# Notification module {#js_notification}
```js
let notify = require("notification");
```
## Methods
### success()
"Success" flipper notification message.
**Example**
```js
notify.success();
```
<br>
### error()
"Error" flipper notification message.
**Example**
```js
notify.error();
```
<br>
### 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
```