Skip to main content

Documentation Index

Fetch the complete documentation index at: https://bym.lonestill.uk/llms.txt

Use this file to discover all available pages before exploring further.

toast

api.UI.toast(message, duration = 3000)
Уведомление внутри интерфейса YM. duration — время в мс.
api.UI.toast('Скорость: 1.5×', 1500);

notify

api.UI.notify(title, body?, opts?)
Системное уведомление через Electron — появляется в трее Windows. Работает когда YM свёрнут.
api.UI.notify('Новый трек', 'Imagine Dragons — Bones');

showConfirm

const ok = await api.UI.showConfirm(title, body)
// → true (OK) | false (Отмена)
const ok = await api.UI.showConfirm('Сброс', 'Удалить все данные?');
if (ok) api.Storage.set('config', null);

Когда что использовать

СитуацияМетод
Быстрая обратная связьtoast
Уведомление когда YM в фонеnotify
Запросить подтверждениеshowConfirm