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

  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()
{
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));
}
});
}
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:3961
Toast.Gamebase.Gamebase.Terms
Displays the terms and conditions set in the Gamebase console.
Definition: Gamebase.cs:3933
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
Here is the call graph for this function:
Here is the caller graph for this function: