enroll

abstract suspend fun enroll(): Boolean

This method

  • Enrolls the user if not previously enrolled (ie. no cohort currently assigned) AND isEnabled.

  • Is idempotent, ie. calling the function multiple times has the same effect as calling it once.

Return

true when the first enrolment is done, false in any other subsequent call