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 value if it wasn't set earlier.
withValueReset() Resets the attribute value.
withValue(_:) Updates the attribute value.
withValueIfUndefined(_:) Updates the attribute value if it wasn't set earlier.
withValueReset() Resets the attribute value.

Method descriptions

withValue(_:)

func withValue(_ value: Bool) -> YMMUserProfileUpdate

Updates the attribute value.

Parameters:
value Attribute value: true or false.
value Attribute value: true or false.

Returns:

The YMMUserProfileUpdate class instance.

withValueIfUndefined(_:)

func withValueIfUndefined(_ value: Bool) -> YMMUserProfileUpdate

Updates the attribute value if it wasn't set earlier.

Parameters:
value Attribute value: true or false.
value Attribute value: true or false.

Returns:

The YMMUserProfileUpdate class instance.

withValueReset()

func withValueReset() -> YMMUserProfileUpdate

Resets the attribute value.

Returns:

The YMMUserProfileUpdate class instance.