---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.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
  - href: ru/sdk/ios/analytics/objectivec/AMACustomNumberAttribute.md
    type: text/markdown
    title: Markdown version
  - href: ../../../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com/docs/ru/llms.txt

# Протокол AMACustomNumberAttribute

Протокол определяет методы для обновления значения числового атрибута.

## Методы экземпляра {#instance_summary}

#|
|| -[withValue:](#method_withValue) | Обновляет значение атрибута. ||
|| -[withValueIfUndefined:](#method_withValueIfUndefined) | Обновляет значение атрибута, если оно не было установлено ранее. ||
|| -[withValueReset](#method_withValueReset) | Сбрасывает значение атрибута. ||
|#

## Описание методов {#method_detail}

### -withValue: {#method_withValue}

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

Обновляет значение атрибута.

**Параметры:**

#|
|| `value` | Значение числового атрибута. Тип данных — `double`. ||
|#

**Возвращает:**

Объект класса `AMAUserProfileUpdate`.

### -withValueIfUndefined: {#method_withValueIfUndefined}

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

Обновляет значение атрибута, если оно не было установлено ранее.

**Параметры:**

#|
|| `value` | Значение числового атрибута. Тип данных — `double`. ||
|#

**Возвращает:**

Объект класса `AMAUserProfileUpdate`.

### -withValueReset {#method_withValueReset}

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

Сбрасывает значение атрибута.

**Возвращает:**

Объект класса `AMAUserProfileUpdate`.
