Gamebase SDK for Android
2.9.1
Toast Gamebase Platform
|
This class provides wrapping of function execution related to TOAST Contact. More...
Static Public Member Functions | |
static void | openContact (@NonNull final Activity activity, GamebaseCallback onCloseCallback) |
Open TOAST Contact WebView with CS URL which is wrote in TOAST Gamebase App Console. More... | |
This class provides wrapping of function execution related to TOAST Contact.
|
static |
Open TOAST Contact WebView with CS URL which is wrote in TOAST Gamebase App Console.
If the CS URL is empty or invalid, you will receive a GamebaseException.
activity | |
onCloseCallback | Example Usage: Gamebase.Contact.openContact(activity, new GamebaseCallback() { @Override public void onCallback(GamebaseException exception) { if (exception != null && exception.code == WEBVIEW_INVALID_URL) { // 7001 // Please check the url field in the TOAST Gamebase Console. } else if (exception != null) { // Error occur when opening the contact web view. } else { // A user close the contact web view. } } }); } |