cardinalityConstraint property

String? cardinalityConstraint
getter/setter pair

Cardinality constraint to observe when linking a persona to a player in the scope of a game.

Required. Possible string values are:

  • "ONE_PERSONA_TO_ONE_PLAYER" : 1:1 cardinality between in-game personas and Play Games Services players. By the end of the linking operation only one entry for the player and the persona should remain in the scope of the application. Whether a new link is created or not when this constraint is specified is determined by the chosen ConflictingLinksResolutionPolicy:
  • If KEEP_EXISTING_LINKS is specified and the provided persona is already linked to a different player, or the player is already linked to a different persona, no new link will be created and the already existing link(s) will remain as is(are). * If CREATE_NEW_LINK is specified and the provided persona is already linked to a different player, or the player is already linked to another persona, the older link(s) will be removed in favour of the new link being created.

Implementation

core.String? cardinalityConstraint;