Gamebase SDK for Unity 2.76.0 Toast Gamebase Platform

Loading...
Searching...
No Matches

## ◆ OpenCommunity()

static void OpenCommunity | ( | GamebaseRequest.Community.Configuration | configuration,
|  | GamebaseCallback.ErrorDelegate | callback )
| static

Open Community WebView with URL.

If the CS URL is empty or invalid, you will receive a GamebaseError.

Since
  Added 2.64.0.

Parameters

  configuration | The init settings of contact URL.
  callback | Callbacks the result of Community.

Example Usage :

public void SampleOpenCommunity()
{
var configuration = new GamebaseRequest.Community.Configuration()
{
forcedURL = "https://www.nhncloud.com"
};
Gamebase.Community.OpenCommunity(configuration, (error) =>
{
if (Gamebase.IsSuccess(error) == true)
{
// A user close the contact web view.
}
else
{
// An error occur when opening the contact web view.
}
});
}
Toast.Gamebase.Gamebase.Community.OpenCommunity
static void OpenCommunity(GamebaseRequest.Community.Configuration configuration, GamebaseCallback.ErrorDelegate callback)
Open Community WebView with URL.
Definition Gamebase.cs:4003
Toast.Gamebase.Gamebase.Community
This class provides wrapping of function execution related to TOAST Community.
Definition Gamebase.cs:3971
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