-
Notifications
You must be signed in to change notification settings - Fork 154
Steam Info APIs
##APIs
Returns a Boolean
whether Steam APIs were successfully initialized or not.
Note: When testing this, you need to launch and log in the Steam Client, and put steam_appid.txt
under your app directory.
-
appId
Integer: The APP ID of your game
If your app was not launched via Steam, this will signal Steam to launch your app, and then cause your app to quit.
There's not a moment to lose after you call restartAppIfNecessary()
, but if it returns true
, your app is being restarted.
Returns an 'Object' represents extensive information of the current Steam user.
- Result
Object
- accountId
Integer
: Steam account ID - staticAccountId
Integer
: Static steam ID - screenName
String
: Steam screen name - level
Integer
: Steam level - isValid
Boolean
: whether is a valid account - type
Object
: represents user account type- name
String
: User account type name - value
Integer
: User account type id
- name
- flags
Object
: represents describing types of user account information- anonymous
Boolean
: whether is an anonymous account - anonymousGameServer
Boolean
: whether is an anonymous game server account - anonymousGameServerLogin
Boolean
: whether is an anonymous game server account login request - anonymousUser
Boolean
: whether is an anonymous user account - chat
Boolean
: whether is a chat account - clan
Boolean
: whether is a clan account - consoleUser
Boolean
: whether is a console user(PSN) account - contentServer
Boolean
: whether is a content server account - gameServer
Boolean
: whether is a game server account - individual
Boolean
: whether is a individual account - gameServerPersistent
Boolean
: whether is a persistent game server account - lobby
Boolean
: whether is a lobby(chat) account
- anonymous
- accountId
-
achievement
String -
success_callback
Function() -
error_callback
Function(err)
The achievement
represents the unlocked achievement in your game.
-
achievement
String: The achievement name in you game -
success_callback
Function(is_achieved)-
is_achieved
Boolean: Whether the achievement is achieved.
-
-
error_callback
Function(err)
Gets whether the achievement
is achieved.
-
achievement
String - The achievement needs to be cleared -
success_callback
Function() -
error_callback
Function(err)
Returns a Array
represents all the achievements in the game.
Returns a Integer
represents the number of all achievements in the game.
Returns a String
represents the current language from Steam specifically set for the game.
Returns a String
represents the current language from Steam set in UI.
Not implement yet.
-
success_callback
Function(num_of_players)-
num_of_players
Integer: the current number of players on Steam.
-
-
error_callback
Function(err)
-
option
String: valid options areFriends
,Community
,Players
,Settings
,OfficialGameGroup
,Stats
andAchievements
.
Activate the game overlay with the option
dialog opens.
Return Boolean
indicates whether Steam overlay is enabled/disabled.
-
url
String: a full url, e.g. http://www.steamgames.com.
Open a specified url in steam game overlay.
-
appId
Integer: The APP ID of your game
Returns a Boolean
indicates whether the user has purchased that app.