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

# AMANameAttribute 协议

该协议定义了更新用户个人资料名称的方法。

## Instance methods {#instance_summary}

#|
|| -[withValue:](#method_withValue) | 更新属性值。 ||
|| -[withValueReset](#method_withValueReset) | 重置属性值。 ||
|#

## Method descriptions {#method_detail}

### -withValue: {#method_withValue}

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

更新属性值。

**参数：**

#|
|| `value` | 用户资料的名称。 用户个人资料名称的最大长度为100个字符。 ||
|#

**返回：**

该 `AMAUserProfileUpdate` 类实例。

### -withValueReset {#method_withValueReset}

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

重置属性值。

**返回：**

The `AMAUserProfileUpdate` 类实例。
