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()

Updates the attribute value.

Method descriptions

withValue(_:)

func withValue(_ value: Bool) -> YMMUserProfileUpdate

Updates the attribute value.

Parameters:
value

Attribute value: YES or NO

Returns:

The instance of the YMMUserProfileUpdate class.

withValueReset()

func withValueReset() -> YMMUserProfileUpdate

Resets the attribute value.

Returns:

The instance of the YMMUserProfileUpdate class.