NotificationsEnabledAttribute class
com.yandex.metrica.profile
public class NotificationsEnabledAttribute
Methods of the class set the notification status for a user profile.
It indicates whether the user has enabled notifications for the application.
Methods
UserProfileUpdate<? extends UserProfileUpdatePatcher> | withValue(boolean value) | Updates the attribute value. |
UserProfileUpdate<? extends UserProfileUpdatePatcher> | withValueIfUndefined(boolean value) | Updates the attribute with the specified value only if the attribute value is undefined. |
UserProfileUpdate<? extends UserProfileUpdatePatcher> | withValueReset() | Resets the attribute value. |
UserProfileUpdate<? extends UserProfileUpdatePatcher> | withValue(boolean value) | Updates the attribute value. |
UserProfileUpdate<? extends UserProfileUpdatePatcher> | withValueIfUndefined(boolean value) | Updates the attribute with the specified value only if the attribute value is undefined. |
UserProfileUpdate<? extends UserProfileUpdatePatcher> | withValueReset() | Resets the attribute value. |
Method descriptions
withValue
public UserProfileUpdate<? extends UserProfileUpdatePatcher> withValue(boolean value)
Updates the attribute value.
value | Attribute value: true or false . |
value | Attribute value: true or false . |
Returns:
The instance of the UserProfileUpdate
class that contains all attribute updates.
withValueIfUndefined
public UserProfileUpdate<? extends UserProfileUpdatePatcher> withValueIfUndefined(boolean value)
Updates the attribute with the specified value only if the attribute value is undefined.
value | Attribute value: true or false . |
value | Attribute value: true or false . |
Returns:
The instance of the UserProfileUpdate
class that contains all attribute updates.
withValueReset
public UserProfileUpdate<? extends UserProfileUpdatePatcher> withValueReset()
Resets the attribute value.
Returns:
The instance of the UserProfileUpdate
class that contains all attribute updates.