Braze JavaScript SDK
    Preparing search index...

    Function setUserGender

    • Sets the gender of the user.

      Parameters

      • gender: Genders | null

        Generally 'm' or 'f'. Accepts an explicit null value to null out attribute. Use the GenderOptions enum when setting this value.

      Returns Promise<boolean | undefined>

      Resolves to a boolean that indicates whether the update was successfully enqueued. Resolves to undefined if the SDK is not initialized.