FBInstant.getSupportedAPIs: Difference between revisions
From GiderosMobile
No edit summary |
m Text replacement - "</source>" to "</syntaxhighlight>" |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2018.3<br/> | <languages /> | ||
=== Description === | '''<translate>Available since</translate>:''' Gideros 2018.3<br/> | ||
<br /> | '''<translate>Class</translate>:''' [[Special:MyLanguage/* Initialisation and Core|* Initialisation and Core]]<br/> | ||
=== <translate>Description</translate> === | |||
<translate><br /> | |||
Provides a table of API functions that are supported by the client.<br /> | Provides a table of API functions that are supported by the client.<br /> | ||
<br /> | <br /></translate> | ||
< | <syntaxhighlight lang="lua"> | ||
(table) = FBInstant.getSupportedAPIs() | (table) = FBInstant.getSupportedAPIs() | ||
</ | </syntaxhighlight> | ||
'''Returns''' (table) Table of API functions that the client explicitly supports.<br/> | === <translate>Return values</translate> === | ||
'''<translate>Returns</translate>''' (table) <translate>Table of API functions that the client explicitly supports.</translate><br/> | |||
=== <translate>Examples</translate> === | |||
'''Example'''<br/> | |||
<syntaxhighlight lang="lua"> | |||
FBInstant.getSupportedAPIs( function(result,error) | |||
if result then | |||
print("Number of functions:",#result) | |||
for loop=1,#result do | |||
print(result[loop]) | |||
end | |||
end | |||
end) | |||
<br/></syntaxhighlight> | |||
{{FBInstant}} | |||
Latest revision as of 13:27, 13 July 2023
Available since: Gideros 2018.3
Class: * Initialisation and Core
Description
Provides a table of API functions that are supported by the client.
(table) = FBInstant.getSupportedAPIs()
Return values
Returns (table) Table of API functions that the client explicitly supports.
Examples
Example
FBInstant.getSupportedAPIs( function(result,error)
if result then
print("Number of functions:",#result)
for loop=1,#result do
print(result[loop])
end
end
end)
<br/>
- FBInstant.canCreateShortcutAsync
- FBInstant.checkCanPlayerMatchAsync
- FBInstant.createShortcutAsync
- FBInstant.getEntryPointAsync
- FBInstant.getEntryPointData
- FBInstant.getInterstitialAdAsync
- FBInstant.getLeaderboardAsync
- FBInstant.getLocale
- FBInstant.getPlatform
- FBInstant.getRewardedVideoAsync
- FBInstant.getSDKVersion
- FBInstant.getSupportedAPIs
- FBInstant.logEvent
- FBInstant.matchPlayerAsync
- FBInstant.onPause
- FBInstant.quit
- FBInstant.setLoadingProgress
- FBInstant.setSessionData
- FBInstant.shareAsync
- FBInstant.startGameAsync
- FBInstant.switchGameAsync
- FBInstant.updateAsync