public final class CounterAttribute
extends java.lang.Object
EXAMPLE:
CounterAttribute timeLeftAttribute = Attribute.customCounter("time_left");
UserProfile userProfile = new UserProfile.Builder()
.apply(Attribute.timeLeftAttribute().withDelta(-10d))
.build();
| Modifier and Type | Method and Description |
|---|---|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> |
withDelta(double value)
Updates the counter attribute value with the specified delta value.
|
@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withDelta(double value)
value - Delta value to change the counter attribute valueUserProfileUpdate object