Gamebase SDK for Unity 2.75.1 Toast Gamebase Platform

Loading...
Searching...
No Matches

## ◆ QueryTerms()

static void QueryTerms | ( | GamebaseCallback::GamebaseDelegate< GamebaseResponse::Terms::QueryTermsResult > | callback | ) |
| static

If you develop the terms and conditions for the game UI yourself, you can call queryTerms API to receive and use the terms and conditions set in the Gamebase console.

If you call the API after logging in, you can also check whether the game user has agreed to the terms and conditions.

Since
  Added 2.20.0.

Parameters

  callback | The result of the API call is notified to the user as a callback. You can get the terms and conditions set in the console with QueryTermsResult that comes as a callback.

Example Usage :

public void SampleQueryTerms()
{
Gamebase.Terms.QueryTerms((data, error) =>
{
if (Gamebase.IsSuccess(error) == true)
{
Debug.Log("QueryTerms succeeded.");
}
else
{
Debug.Log(string.Format("QueryTerms failed. error:{0}", error));
}
});
}
Toast.Gamebase.Gamebase.Terms.QueryTerms
static void QueryTerms(GamebaseCallback.GamebaseDelegate< GamebaseResponse.Terms.QueryTermsResult > callback)
If you develop the terms and conditions for the game UI yourself, you can call queryTerms API to rece...
Definition: Gamebase.cs:4074
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