Gamebase SDK for Unity 2.76.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

  configuration | The initial settings of terms view.
  callback | After 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));
}
});
}
Toast.Gamebase.Gamebase.Terms.ShowTermsView
static void ShowTermsView(GamebaseCallback.GamebaseDelegate< GamebaseResponse.DataContainer > callback)
Displays the terms and conditions window on the screen.
Definition Gamebase.cs:4042
Toast.Gamebase.Gamebase.Terms
Displays the terms and conditions set in the Gamebase console.
Definition Gamebase.cs:4014
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