Difference between revisions of "FBInstant.getEntryPointAsync"

From GiderosMobile
Line 8: Line 8:
 
  FBInstant.getEntryPointAsync(callback)
 
  FBInstant.getEntryPointAsync(callback)
 
</source>
 
</source>
'''callback''': (function) A function that will be called with two arguments: The name of the entry point from which the user started the game or nil if the operation failed, and an error code if the function failed. ''''''<br/>
+
=== Parameters ===
 +
'''callback''': (function) A function that will be called with two arguments: The name of the entry point from which the user started the game or nil if the operation failed, and an error code if the function failed. <br/>
 +
=== Examples ===
 +
'''Example'''<br/>
 +
<source lang="lua"><br />
 +
FBInstant.getEntryPointAsync( function(result,error)
 +
    if result then
 +
print("Entry point:",result)
 +
end
 +
end)
 +
<br/></source>

Revision as of 10:45, 23 August 2018

Available since: Gideros 2018.3

Description


Returns the entry point that the game was launched from.

 FBInstant.getEntryPointAsync(callback)

Parameters

callback: (function) A function that will be called with two arguments: The name of the entry point from which the user started the game or nil if the operation failed, and an error code if the function failed.

Examples

Example

<br />
FBInstant.getEntryPointAsync( function(result,error)
    if result then
		print("Entry point:",result)
	end
end)
<br/>