Gamebase SDK for Unity 2.69.0
Toast Gamebase Platform
Loading...
Searching...
No Matches

◆ ShowTermsView() [1/2]

static void ShowTermsView ( GamebaseCallback::GamebaseDelegate< GamebaseResponse::DataContainer > callback)
static

Displays the terms and conditions window on the screen.

If the user agrees to the terms and conditions, it registers the consent or not on the server. If you agree to the terms and conditions calling ShowTermsView again does not display the terms and conditions and immediately returns a success callback.

Since
Added 2.20.0.
Parameters
callbackAfter agreeing to the terms and conditions, when the terms and conditions window is closed, the user is notified by a callback.

Example Usage :

public void SampleShowTermsView()
{
Gamebase.Terms.ShowTermsView((data, error) =>
{
if (Gamebase.IsSuccess(error) == true)
{
Debug.Log("ShowTermsView succeeded.");
GamebaseResponse.Terms.ShowTermsViewResult result = GamebaseResponse.Terms.ShowTermsViewResult.From(data);
}
else
{
Debug.Log(string.Format("ShowTermsView failed. error:{0}", error));
}
});
}
static void ShowTermsView(GamebaseCallback.GamebaseDelegate< GamebaseResponse.DataContainer > callback)
Displays the terms and conditions window on the screen.
Definition Gamebase.cs:3882
Displays the terms and conditions set in the Gamebase console.
Definition Gamebase.cs:3854
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
Here is the call graph for this function:
Here is the caller graph for this function: