Difference between revisions of "Flurry.startSession"

From GiderosMobile
Line 9: Line 9:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
  '''If the API key is nil or empty, your app may crash'''
+
  '''If the API key is nil or an empty string, your app may crash'''
  
 
To create an account on Flurry and to obtain the API key specific to your application, please visit https://www.flurry.com/ and follow the instructions there.
 
To create an account on Flurry and to obtain the API key specific to your application, please visit https://www.flurry.com/ and follow the instructions there.

Revision as of 21:19, 7 December 2023

Available since: Gideros 2011.6
Class: flurry

Description

Starts the Flurry session with your API key.

flurry.startSession(apiKey)
If the API key is nil or an empty string, your app may crash

To create an account on Flurry and to obtain the API key specific to your application, please visit https://www.flurry.com/ and follow the instructions there.

You need to call this function once after your application starts. For example, init.lua is suitable to call this function.

Parameters

apiKey: (string) the Flurry API key