event.type

Type String
Event gameNetwork
Revision Release 2024.3703
Keywords gameNetwork, Game Center, type

Overview

The name of the operation that generated the event.

Example

-- Request callback function
local function requestCallback( event )

    print( event.type )  --> "resetAchievements"
end

-- Reset the player's achievement list
gameNetwork.request( "resetAchievements", { listener=requestCallback } )