Yurba Docs

Get started

Accounts

Apps

Users

Relationships

Dialogs (Messages)

Tracks (MuseBase)

Photos

Posts

Comments

Safety

Other

Yurba CDN (cdn.yurba.one)

Yurba Desktop API

Yurba Component Language

METHOD createNotification

Structure

createNotification: String name Methods structure

createNotification { Method prepare { icon: Path, // Local path to the image title: String, text: String, type: String // "default", "error" }, Method show } Description

Create a system notification. First, create a unique identifier, then use prepare to fill the notification with content, and then use show to display it.

Example usage

const myNotification = app.createNotification("myNotification") myNotification.prepare({ icon: "icon.png", title: "Hello world", text: "This is my test notification" }) myNotification.show()