-
Notifications
You must be signed in to change notification settings - Fork 5
API Callbacks
Xavier Sellier edited this page May 20, 2018
·
11 revisions
| name | parameters | description |
|---|---|---|
godot_share_success |
void |
Called once the user has shared a message |
godot_share_failed |
String message |
Called if the share has failed |
godot_android_initialized |
Called once initialized |
| name | parameters | description |
|---|---|---|
google_initialized |
Called once initialized | |
google_auth_connected |
String username |
Called once connected to google play game service. username might be empty (not null) |
google_auth_disconnected |
Called once disconnected | |
google_auth_connect_failed |
String message |
Called when connection has failed. message is the reason of the failure |
google_achievement_unlocked |
String id |
Called once the achievement has been unlocked |
google_achievement_unlock_failed |
String message |
Called if the achievement unlocking has failed |
google_achievement_increased |
String id, int amount |
Called once the achivement has been increased |
google_achievement_increment_failed |
String message |
Called if the achievement increment has failed |
google_leaderboard_submitted |
String id, int score |
Called once the leaderboard hs been updated |
google_leaderboard_submit_failed |
String message |
Called if the leaderboard has not been updated |
google_leaderboard_load_top_scores_failed |
String message |
Called if the top leaderboard has not been loaded |
google_leaderboard_loaded_top_score |
String scores |
Return the users' scores (Dictionary: rank:score, rank:name, rank:photo_path) |
google_leaderboard_load_centered_scores_failed |
String message |
Called if the centered leaderboard has not been loaded |
google_leaderboard_loaded_centered_scores |
String scores |
Return the users' scores (Dictionary: rank:score, rank:name, rank:photo_path) |
google_leaderboard_load_score_failed |
String message |
Called if the user's score has not been loaded |
google_leaderboard_loaded_score |
int score, int rank |
Return the user's score and rank |
google_leaderboard_showd |
String id |
Called once the leaderboard has been showd |
google_leaderboard_show_failed |
String message |
Called if there is an issue when trying to show the leaderboard |
google_leaderboard_showlisted |
Called once the leaderboards have been listed | |
google_leaderboard_showlist_failed |
String message |
Call if it failed to show the leaderboards' list |
google_snapshot_loaded |
String data |
Called once the snapshot has been loaded |
google_snapshot_load_failed |
String message |
Called if it failed to load the snapshot |
google_snapshot_saved |
Called once the snapshot has been saved | |
google_snapshot_save_failed |
String message |
Called if it failed to save the snapshot |
| name | parameters | description |
|---|---|---|
firebase_initialized |
Called once initialized | |
firebase_invite_success |
String id |
Called once the application invitation has been sent |
firebase_auth_connected |
void |
Called once connected anonymously to firebase |
firebase_auth_connect_failed |
String message |
Called if it failed to connect to firebase anonymously |
firebase_invite_failed |
String message |
Called if it failed to send the application invitation |
firebase_notification |
String title, String body, Dictionary payload |
Called when a push notification has been received |