Skip to Content

Cohorts

This API is used to check the local user’s membership in cohorts defined on the Gamebeast dashboard.

For more information about Cohorts, visit the User Cohorts Guide.

var gamebeastCohorts = GamebeastSdk.Cohorts;

IsMemberAsync(cohortName)

→ Task<bool>

This method checks whether the local user is a member of the named cohort. Returns false when the cohort does not exist or the check fails.

Results are cached briefly on-device. Membership is recomputed by the backend, so treat it as eventually consistent rather than real-time.

cohortName

string

The name of the cohort.

Usage

var isMember = await gamebeastCohorts.IsMemberAsync("High Spenders"); if (isMember) { // User is a member of the cohort, do something. }