CustomNumberAttribute 协议
该协议定义了更新数值属性值的方法。
Instance methods
|
更新属性值。 |
|
|
如果属性值之前未设置,则更新属性值。 |
|
|
重置属性值。 |
Method descriptions
withValue(_:)
func withValue(_ value: Double) -> UserProfileUpdate
更新属性值。
参数:
|
|
数值属性的值。 数据类型是 |
返回:
The 用户配置更新 类实例。
withValueIfUndefined(_:)
func withValueIfUndefined(_ value: Double) -> UserProfileUpdate
如果属性值之前未设置,则更新属性值。
参数:
|
|
数值属性的值。 数据类型是 |
返回:
The 用户配置更新 类实例。
withValueReset()
func withValueReset() -> UserProfileUpdate
重置属性值。
返回:
The 用户配置更新 类实例。