public class BooleanAttribute
extends java.lang.Object
EXAMPLE:
UserProfile userProfile = new UserProfile.Builder()
.apply(Attribute.customBoolean("is_enabled").withValue(true))
.build();
| Modifier and Type | Method and Description |
|---|---|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> |
withValue(boolean value)
Updates the attribute with the specified value.
|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> |
withValueIfUndefined(boolean value)
Updates the attribute with the specified value only if the attribute value is undefined.
|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> |
withValueReset()
Resets the attribute value.
|
@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withValue(boolean value)
value - Boolean valueUserProfileUpdate object@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withValueIfUndefined(boolean value)
value - Boolean valueUserProfileUpdate object@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withValueReset()
UserProfileUpdate object