---
metadata:
  - name: generator
    content: Diplodoc Platform v5.70.0
alternate:
  - https://appmetrica.yandex.com/docs/en/sdk/ios/analytics/objectivec/AMACustomNumberAttribute.md
  - https://appmetrica.yandex.com/docs/ru/sdk/ios/analytics/objectivec/AMACustomNumberAttribute.md
  - https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/objectivec/AMACustomNumberAttribute.md
  - href: https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/objectivec/AMACustomNumberAttribute.md
    type: text/markdown
    title: Markdown version
  - href: https://appmetrica.yandex.com/docs/zh/llms.txt?revision=r22089357
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com/docs/zh/llms.txt?revision=r22089357

# AMACustomNumberAttribute 协议

该协议定义了更新数值属性值的方法。

## Instance methods {#instance_summary}

#|
|| -[withValue:](#method_withValue) | 更新属性值。 ||
|| -[withValueIfUndefined:](#method_withValueIfUndefined) | 如果属性值之前未设置，则更新该属性值。 ||
|| -[withValueReset](#method_withValueReset) | 重置属性值。 ||
|#

## Method descriptions {#method_detail}

### -withValue: {#method_withValue}

```objectivec translate=no
- (AMAUserProfileUpdate *)withValue:(double)value
```

更新属性值。

**参数：**

#|
|| `value` | 数值属性的值。 数据类型是`double`. ||
|#

**返回：**

The `AMAUserProfileUpdate` 类实例。

### -withValueIfUndefined: {#method_withValueIfUndefined}

```objectivec translate=no
- (AMAUserProfileUpdate *)withValueIfUndefined:(double)value
```

如果属性值之前未设置，则更新它。

**参数：**

#|
|| `value` | 数值属性的值。 数据类型是`double`. ||
|#

**返回：**

The `AMAUserProfileUpdate` 类实例。

### -withValueReset {#method_withValueReset}

```objectivec translate=no
- (AMAUserProfileUpdate *)withValueReset
```

重置属性值。

**返回：**

The `AMAUserProfileUpdate` 类实例。
