Gamebase SDK for Unity 2.69.0
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
callbackThe 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));
}
});
}
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:3995
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