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

# AMAUserProfile 类

不可变类，用于存储用户资料。

使用[AMAMutableUserProfile](https://appmetrica.yandex.by/docs/zh/sdk/ios/analytics/objectivec/AMAMutableUserProfile.md)类来修改用户资料。

用户资料是用户属性的集合。 用户个人资料显示在AppMetrica的用户个人资料报告中。

应将 `AMAUserProfile` 类的实例传递到 AppMetrica 服务器，使用 [reportUserProfile](https://appmetrica.yandex.by/docs/zh/sdk/ios/analytics/objectivec/AMAAppMetrica.md#method_reportUserProfile) 方法（[AMAAppMetrica](https://appmetrica.yandex.by/docs/zh/sdk/ios/analytics/objectivec/AMAAppMetrica.md) 类）。 使用 [AMAProfileAttribute](https://appmetrica.yandex.by/docs/zh/sdk/ios/analytics/objectivec/AMAProfileAttribute.md) 类的方法来创建用户属性。

## Instance methods {#instance_summary}

#|
|| -[initWithUpdates:](#method_initWithUpdates) | 用指定的更新集初始化用户资料。 ||
|#

## Properties {#property_summary}

#|
|| [更新](#property_updates) | 包含属性更新的数组。 ||
|#

## Method descriptions {#method_detail}

### -initWithUpdates: {#method_initWithUpdates}

```objectivec translate=no
- (instancetype)initWithUpdates:(NSArray<AMAUserProfileUpdate *> *)updates
```

用指定的更新集初始化用户资料。

**参数：**

#|
|| `更新` | 包含属性更新的数组。 ||
|#

**返回：**

The `AMAUserProfile` 类实例。

## Property descriptions {#property_detail}

### updates {#property_updates}

`(nonatomic, copy, readonly) NSArray<AMAUserProfileUpdate *> *更新`

包含属性更新的数组。
