public class GenderAttribute
extends java.lang.Object
Possible values:
You can set the OTHER value to the Gender attribute and pass additional info using the custom attribute.
EXAMPLE:
UserProfile userProfile = new UserProfile.Builder()
.apply(Attribute.gender().withValue(GenderAttribute.Gender.FEMALE))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
GenderAttribute.Gender
Gender enumeration.
|
| Modifier and Type | Method and Description |
|---|---|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> |
withValue(GenderAttribute.Gender value)
Updates the gender attribute with the specified value.
|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> |
withValueIfUndefined(GenderAttribute.Gender value)
Updates the gender attribute with the specified value only if the attribute value is undefined.
|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> |
withValueReset()
Resets the gender attribute value.
|
@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withValue(@NonNull GenderAttribute.Gender value)
It overwrites the existing value.
value - GenderAttribute.Gender enumeration valueUserProfileUpdate object@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withValueIfUndefined(@NonNull GenderAttribute.Gender value)
value - GenderAttribute.Gender enumeration valueUserProfileUpdate object@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withValueReset()
UserProfileUpdate object