API reference

UserAgeCategory Class

Modifiers: final
Users are divided into three categories based on their age: -AccountAgeCategory.Ch: Child age group for users between the ages of 10-12 (or applicable age in user's region). -AccountAgeCategory.Tn: Teenage age group for users between the ages of 13-17 (or applicable age in user's region). -AccountAgeCategory.Ad: Adult age group for users ages 18 and up (or applicable age in user's region).

Signature

class UserAgeCategory

Constructors

UserAgeCategory ()
Signature
constructor()
Returns
UserAgeCategory

Methods

get ()
Retrieve the user age category for the current user. It can be used in UserAccountAgeCategory.ageCategory
This method can return the following status codes: common status codes in UserAgeCategoryStatusCode.
Signature
suspend fun get(): UserAccountAgeCategory
Returns
UserAccountAgeCategory  The user age category for the current user.