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

◆ ShowTermsView() [2/2]

static void ShowTermsView ( GamebaseRequest::Terms::GamebaseTermsConfiguration configuration,
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.

Since
Added 2.33.0.
Parameters
configurationThe initial settings of terms view.
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(bool forceShow)
{
var configuration = new GamebaseRequest.Terms.GamebaseTermsConfiguration
{
forceShow = forceShow
};
Gamebase.Terms.ShowTermsView(configuration, (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