Gamebase SDK for Unity 2.69.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
configurationThe init settings of contact URL.
callbackCallbacks 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.
}
});
}
static void OpenCommunity(GamebaseRequest.Community.Configuration configuration, GamebaseCallback.ErrorDelegate callback)
Open Community WebView with URL.
Definition Gamebase.cs:3843
This class provides wrapping of function execution related to TOAST Community.
Definition Gamebase.cs:3811
static bool IsSuccess(GamebaseError error)
Return true if the GamebaseException object is null or the error code is zero.
Definition Gamebase.cs:57
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11