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

◆ UpdateTerms()

static void UpdateTerms ( GamebaseRequest::Terms::UpdateTermsConfiguration configuration,
GamebaseCallback::ErrorDelegate callback )
static

If you have created your own UI with the terms and conditions information downloaded through the QueryTerms API, Please send the game user's agreement to the terms and conditions to the Gamebase server through the UpdateTerms API.

You can also use it for the purpose of changing the details of your agreement to the terms, such as canceling the agreement to the optional terms and conditions.

Since
Added 2.20.0.
Parameters
configurationThis is the information on the user's option to register on the server.
callbackThe optional terms and conditions are registered on the server and notified to the user via a callback.

Example Usage :

public void SampleUpdateTerms()
{
List<GamebaseRequest.Terms.Content> list = new List<GamebaseRequest.Terms.Content>();
list.Add(new GamebaseRequest.Terms.Content()
{
termsContentSeq = 0,
agreed = true
});
new GamebaseRequest.Terms.UpdateTermsConfiguration()
{
termsSeq = 0,
termsVersion = "1.0.0",
contents = list
},
(error) =>
{
if (Gamebase.IsSuccess(error) == true)
{
Debug.Log("UpdateTerms succeeded.");
}
else
{
Debug.Log(string.Format("UpdateTerms failed. error:{0}", error));
}
});
}
static void UpdateTerms(GamebaseRequest.Terms.UpdateTermsConfiguration configuration, GamebaseCallback.ErrorDelegate callback)
If you have created your own UI with the terms and conditions information downloaded through the Quer...
Definition Gamebase.cs:3965
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