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

    configuration | This is the information on the user's option to register on the server.
    callback | The 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
});
Gamebase.Terms.UpdateTerms(
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));
}
});
}
Toast.Gamebase.Gamebase.Terms.UpdateTerms
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:4044
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