类型 字符串 事件 通知 修订版本 发行版 2024.3703 关键字 通知,应用程序状态
收到通知时表示应用程序状态的字符串。
"active"
表示应用程序当时正在运行。"inactive"
表示应用程序当时已暂停或关闭。-- The launch arguments provide a notification event if this app was started when the user tapped on a notification local launchArgs = ... if ( launchArgs and launchArgs.notification ) then print( launchArgs.notification.type ) print( launchArgs.notification.name ) print( launchArgs.notification.sound ) print( launchArgs.notification.alert ) print( launchArgs.notification.badge ) print( launchArgs.notification.applicationState ) end