YMMCustomBoolAttribute protocol

The protocol defines methods for updating the value of a boolean attribute.

Instance methods

withValue(_:)

Updates the attribute value.

withValueIfUndefined(_:)

Updates the attribute with the specified value only if the attribute value is undefined.

withValueReset()

Resets the attribute value.

Method descriptions

withValue(_:)

func withValue(_ value: Bool) -> YMMUserProfileUpdate

Updates the attribute value.

Parameters:
valueAttribute value: true or false.

Returns:

The instance of the YMMUserProfileUpdate class.

withValueIfUndefined(_:)

func withValueIfUndefined(_ value: Bool) -> YMMUserProfileUpdate

Updates the attribute with the specified value only if the attribute value is undefined.

Parameters:
valueAttribute value: true or false.

Returns:

The instance of the YMMUserProfileUpdate class.

withValueReset()

func withValueReset() -> YMMUserProfileUpdate

Resets the attribute value.

Returns:

The instance of the YMMUserProfileUpdate class.