event.applicationState

类型 字符串
事件 通知
修订版本 发行版 2024.3703
关键字 通知,应用程序状态

概述

收到通知时表示应用程序状态的字符串。

实例

-- 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