Skip to content

Type: ContextFilter

ContextFilter: NEW_CONTEXT_ONLY | INCLUDE_EXISTING_CHALLENGES | NEW_PLAYERS_ONLY | NEW_INVITATIONS_ONLY

A filter that may be applied to a chooseAsync operation.

  • NEW_CONTEXT_ONLY - Prefer to only surface contexts the game has not been played in before.
  • INCLUDE_EXISTING_CHALLENGES - Include the "Existing Challenges" section, which surfaces actively played-in contexts that the player is a part of.
  • NEW_PLAYERS_ONLY - In sections containing individuals, prefer people who have not played the game.
  • NEW_INVITATIONS_ONLY - Only enlists friends who haven't been sent an in-game message before. This filter can be fine-tuned with hoursSinceInvitation parameter. (Viber only)