Difference between revisions of "Flurry"

From GiderosMobile
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]]<br/>
+
<!-- GIDEROSOBJ:flurry -->
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]]<br/>
=== <translate>Description</translate> ===
+
'''Available since:''' Gideros 2011.6<br/>
<translate><br />
+
 
This table stores all the functions related to Flurry analytics library.<br />
+
 
<br />
+
'''<big>Flurry Mobile Analytics, including SDK and Analytics UI, will sunset on <span style="color:#ff0000">March 15, 2024</span>.</big>'''
Flurry is available only for iOS as an external plugin. To use flurry:<br />
+
 
<br />
+
 
1. Create an account on [http://www.flurry.com](http://www.flurry.com) and follow the instructions about creating a new application.<br />
+
=== Description ===
2. Download Flurry header and libraries and add them to your Xcode project.<br />
+
This table stores all the functions related to Flurry analytics library.
3. Add {Gideros Installation Directory}/All Plugins/Flurry/source/iOS/flurry.mm file to your Xcode project.<br />
+
 
<br />
+
Flurry is available only for iOS and Android. To use flurry:
To load the Flurry library, call ''require &quot;flurry&quot;''.<br />
+
# create an account on https://www.flurry.com/ and follow the instructions about creating a new application
<br /></translate>
+
 
 +
'''For iOS''' (external plugin):
 +
# download Flurry header and libraries and add them to your Xcode project
 +
# add {Gideros Installation Directory}/All Plugins/Flurry/source/iOS/flurry.mm file to your Xcode project
 +
 
 +
To load the Flurry library, add the Flurry '''plugin''' to your app and the following code:
 +
<syntaxhighlight lang="lua">
 +
if application:getDeviceInfo() == "Android" or application:getDeviceInfo() == "iOS" then
 +
require "flurry"
 +
end
 +
</syntaxhighlight>
 +
 
 +
=== Example ===
 +
<syntaxhighlight lang="lua">
 +
if application:getDeviceInfo() == "Android" or application:getDeviceInfo() == "iOS" then
 +
local api_key = "your flurry app key" -- if empty the app will crash!
 +
if flurry ~= nil and flurry.isAvailable() then
 +
print("Flurry is available")
 +
flurry.startSession(api_key)
 +
flurry.logEvent("test_event", { name="test" } )
 +
else
 +
print("Flurry is not available")
 +
end
 +
end
 +
</syntaxhighlight>
 +
 
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== <translate>Methods</translate> ===
+
=== Methods ===
[[Special:MyLanguage/flurry.endTimedEvent|flurry.endTimedEvent]] ''<translate>ends Flurry timed event</translate>''<br/>
+
[[flurry.endTimedEvent]] ''ends Flurry timed event''<br/><!--GIDEROSMTD:flurry.endTimedEvent(eventName,parameters) ends Flurry timed event-->
[[Special:MyLanguage/flurry.isAvailable|flurry.isAvailable]] ''<translate>returns true if Flurry is available</translate>''<br/>
+
[[flurry.isAvailable]] ''returns true if Flurry is available''<br/><!--GIDEROSMTD:flurry.isAvailable() returns true if Flurry is available-->
[[Special:MyLanguage/flurry.logEvent|flurry.logEvent]] ''<translate>logs Flurry event</translate>''<br/>
+
[[flurry.logEvent]] ''logs Flurry event''<br/><!--GIDEROSMTD:flurry.logEvent(eventName,parameters,timed) logs Flurry event-->
[[Special:MyLanguage/flurry.startSession|flurry.startSession]] ''<translate>starts the Flurry session with your API key</translate>''<br/>
+
[[flurry.startSession]] ''starts the Flurry session with your API key''<br/><!--GIDEROSMTD:flurry.startSession(apiKey) starts the Flurry session with your API key-->
 +
 
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== <translate>Events</translate> ===
+
=== Events ===
=== <translate>Constants</translate> ===
+
=== Constants ===
 
|}
 
|}
 +
 +
{{GIDEROS IMPORTANT LINKS}}

Latest revision as of 12:05, 24 December 2023

Supported platforms: Platform android.pngPlatform ios.png
Available since: Gideros 2011.6


Flurry Mobile Analytics, including SDK and Analytics UI, will sunset on March 15, 2024.


Description

This table stores all the functions related to Flurry analytics library.

Flurry is available only for iOS and Android. To use flurry:

  1. create an account on https://www.flurry.com/ and follow the instructions about creating a new application

For iOS (external plugin):

  1. download Flurry header and libraries and add them to your Xcode project
  2. add {Gideros Installation Directory}/All Plugins/Flurry/source/iOS/flurry.mm file to your Xcode project

To load the Flurry library, add the Flurry plugin to your app and the following code:

if application:getDeviceInfo() == "Android" or application:getDeviceInfo() == "iOS" then
	require "flurry"
end

Example

if application:getDeviceInfo() == "Android" or application:getDeviceInfo() == "iOS" then
	local api_key = "your flurry app key" -- if empty the app will crash!
	if flurry ~= nil and flurry.isAvailable() then
		print("Flurry is available")
		flurry.startSession(api_key)
		flurry.logEvent("test_event", { name="test" } )
	else
		print("Flurry is not available")
	end
end

Methods

flurry.endTimedEvent ends Flurry timed event
flurry.isAvailable returns true if Flurry is available
flurry.logEvent logs Flurry event
flurry.startSession starts the Flurry session with your API key

Events

Constants