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
ModuleControl: { ... }
ModuleControl {
Object MusicPlayer {
Method on {
eventName: String,
func: Function
}
},
Object Notificator {
Method open {
content: Object,
time: Int, Optional
}
}
}
const mp = ModuleControl.MusicPlayer
mp.on("play", () => { ... }) // on play
mp.on("pause", () => { ... }) // on pause
mp.on("update", () => { ... }) // on update (music change)
mp.on("open", () => { ... }) // on open
mp.on("close", () => { ... }) // on close
const notificator = ModuleControl.Notificator
notificator.open(
{
icon: String,
image: Path, // if not icon
animate: Bool // disable or not any icon/image animations
type: String,
text: String
}
)
const notificator = ModuleControl.Notificator
notificator.open(
{
// ...
content: {
title: String,
description: String,
align: String
}
}
)