类型 函数 返回值 无 修订版 发行版本 2024.3703 关键字 通知,通知,订阅 另请参阅 notifications.unsubscribe() notifications.*
订阅特定主题以接收其通知。
notifications.subscribe( topic )
字符串. 要订阅的话题。
local notifications = require( "plugin.notifications.v2" ) notifications.subscribe( "news" )