event.type

类型 字符串
事件 通知
修订 版本 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