event.type

Type String
Event notification
Revision Release 2022.3683
Keywords notification, type

Overview

A string identifying the type of notification event:

Example

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