event.type

Type String
Event gameNetwork
Revision 2017.3060
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 } )