YMMNotificationsEnabledAttribute protocol

The protocol defines methods for updating the notification status of a user profile.

It indicates whether the user has enabled notifications for the application.

Instance methods

withValue(_:) Updates the attribute value.
withValueReset()

Resets the attribute value.

withValue(_:) Updates the attribute value.
withValueReset()

Resets the attribute value.

Method descriptions

withValue(_:)

func withValue(_ value: Bool) -> YMMUserProfileUpdate

Updates the attribute value.

Parameters:
value

Attribute value: YES or NO

value

Attribute value: YES or NO

Returns:

The YMMUserProfileUpdate class instance.

withValueReset()

func withValueReset() -> YMMUserProfileUpdate

Resets the attribute value.

Returns:

The YMMUserProfileUpdate class instance.