YMMCustomNumberAttribute protocol
The protocol defines methods for updating the value of a numeric 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:
- (YMMUserProfileUpdate *)withValue:(double)value
Updates the attribute value.
Parameters:
Returns:
value | The value of the numeric attribute. The data type is double . |
value | The value of the numeric attribute. The data type is double . |
The YMMUserProfileUpdate
class instance.
-withValueIfUndefined:
- (YMMUserProfileUpdate *)withValueIfUndefined:(double)value
Updates the attribute value if it wasn't set earlier.
Parameters:
value | The value of the numeric attribute. The data type is double . |
value | The value of the numeric attribute. The data type is double . |
Returns:
The YMMUserProfileUpdate
class instance.
-withValueReset
- (YMMUserProfileUpdate *)withValueReset
Resets the attribute value.
Returns:
The YMMUserProfileUpdate
class instance.