Skip to main content

recordPlayerConsents

Store acceptance of the platform's current player documents (playerLegalDocuments) and, with appId, of the app's own (appRequiredDocuments), recorded with the app and the method. acceptLegal must be true. attestAgeOfMajority must be true too while the platform still uses the age-of-majority attestation (the player then counts as 18 or older); once players give a birth date instead (recordPlayerAge) it is ignored. A refused call stores nothing (LEGAL_ACCEPTANCE_REQUIRED). Idempotent for a version already stored. Requires a session token. Gameplay tokens stay refused until this has succeeded for the current documents.

recordPlayerConsents(
acceptLegal: Boolean!
attestAgeOfMajority: Boolean
appId: BigInt
method: LegalAcceptanceMethod
): Boolean!

Arguments​

True when the player agrees to the current required legal documents.

recordPlayerConsents.attestAgeOfMajority ● Boolean scalar​

True when the player attests they are at least 18, or the age of majority where they live if that is higher. Required while the platform uses the attestation; ignored once it asks for a birth date.

recordPlayerConsents.appId ● BigInt scalar​

The app whose own documents the player also accepted (BigInt as a decimal string). Omit for the platform's documents alone.

recordPlayerConsents.method ● LegalAcceptanceMethod enum​

How the player accepted: CLICKWRAP (the default) on a Crowded Kingdoms page or SDK form, IN_GAME on the app's own screen.

Type​

Boolean scalar​

The Boolean scalar type represents true or false.