Gamebase SDK for Unity 2.75.1 Toast Gamebase Platform

Loading...
Searching...
No Matches

## ◆ RequestContactURL() [2/2]

static void RequestContactURL | ( | GamebaseRequest::Contact::Configuration | configuration,
|  | GamebaseCallback::GamebaseDelegate< string > | callback
| ) |  |
| static

URL is passed through callback.

You can open webview with this URL.

Since
  Added 2.16.0.

Parameters

  configuration | The init settings of contact URL.
  callback | Returns the customer service URL.

Example Usage :

public void SampleRequestContactURL()
{
var configuration = new GamebaseRequest.Contact.Configuration()
{
userName = "User Name"
};
Gamebase.Contact.RequestContactURL(configuration, (url, error) =>
{
if (Gamebase.IsSuccess(error) == true)
{
// Open webview with 'contactUrl'
}
else if (error.code == GamebaseErrorCode.UI_CONTACT_FAIL_INVALID_URL) // 6911
{
// Gamebase Console Service Center URL is invalid.
// Please check the url field in the TOAST Gamebase Console.
}
else
{
// An error occur when requesting the contact web view url.
}
});
}
Toast.Gamebase.Gamebase.Contact.RequestContactURL
static void RequestContactURL(GamebaseCallback.GamebaseDelegate< string > callback)
URL is passed through callback.
Definition: Gamebase.cs:3649
Toast.Gamebase.Gamebase.Contact
This class provides wrapping of function execution related to TOAST Contact.
Definition: Gamebase.cs:3534
Toast.Gamebase.Gamebase.IsSuccess
static bool IsSuccess(GamebaseError error)
Return true if the GamebaseException object is null or the error code is zero.
Definition: Gamebase.cs:57
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition: Gamebase.cs:11