Difference between revisions of "FBInstant.onPause"
From GiderosMobile
Line 8: | Line 8: | ||
FBInstant.onPause(callback) | FBInstant.onPause(callback) | ||
</source> | </source> | ||
− | '''callback''': (function) A function to call when a pause event occurs. ''''''<br/> | + | === Parameters === |
+ | '''callback''': (function) A function to call when a pause event occurs. <br/> | ||
+ | === Examples === | ||
+ | '''Example'''<br/> | ||
+ | <source lang="lua"><br /> | ||
+ | FBInstant.onPause( function() | ||
+ | print("Pause event was triggered.") | ||
+ | end) | ||
+ | <br/></source> |
Revision as of 10:46, 23 August 2018
Available since: Gideros 2018.3
Description
Set a callback to be fired when a pause event is triggered.
FBInstant.onPause(callback)
Parameters
callback: (function) A function to call when a pause event occurs.
Examples
Example
<br />
FBInstant.onPause( function()
print("Pause event was triggered.")
end)
<br/>