Gamebase SDK for Android  2.9.1
Toast Gamebase Platform
Gamebase.Contact Class Reference

This class provides wrapping of function execution related to TOAST Contact. More...

Collaboration diagram for Gamebase.Contact:
Collaboration graph

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...
 

Detailed Description

This class provides wrapping of function execution related to TOAST Contact.

Member Function Documentation

◆ openContact()

static void openContact ( @NonNull final Activity  activity,
GamebaseCallback  onCloseCallback 
)
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.

Since
Added 2.5.0.
Parameters
activity
onCloseCallbackExample Usage:
public void openContact(Activity activity) {
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.
}
}
});
}