requestContactURL
Returns the customer service URL. You can open webview with this URL.
Example Usage:
Gamebase.Contact.requestContactURL(new GamebaseDataCallback<String>() {
@Override
public void onCallback(String customerServiceURL, GamebaseException exception) {
if (Gamebase.isSuccess(exception)) {
// Succeeded.
} else if (exception.getCode() == GamebaseError.UI_CONTACT_FAIL_INVALID_URL) {
// Please check the customer URL field in the TOAST Gamebase Console.
} else {
// Failed.
}
}
});
Content copied to clipboard
Since
Added 2.16.0.
Parameters
callback
Returns the customer service URL.
See also
open fun requestContactURL(@NonNull configuration: ContactConfiguration, @NonNull callback: GamebaseDataCallback<String>)
Returns the customer service URL. You can open webview with this URL.
Example Usage:
ContactConfiguration configuration = ContactConfiguration.newBuilder()
.setUserName(userName)
.build();
Gamebase.Contact.requestContactURL(configuration, new GamebaseDataCallback<String>() {
@Override
public void onCallback(String customerServiceURL, GamebaseException exception) {
if (Gamebase.isSuccess(exception)) {
// Succeeded.
} else if (exception.getCode() == GamebaseError.UI_CONTACT_FAIL_INVALID_URL) {
// Please check the customer URL field in the TOAST Gamebase Console.
} else {
// Failed.
}
}
});
Content copied to clipboard
Since
Added 2.16.0.
Parameters
configuration
The init settings of contact URL.
callback
Returns the customer service URL.