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

# MutableUserProfile 类

可变版本的 [UserProfile](https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/swift/UserProfile.md) 类，用于存储用户个人资料。

用户资料档案是一组用户属性。 用户个人资料显示在AppMetrica的用户个人资料报告中。

应将 `MutableUserProfile` 类的实例传递到 AppMetrica 服务器，使用 [reportUserProfile](https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/swift/AppMetrica.md#reportuserprofile_onfailure-method_reportuserprofile) 方法（[AppMetrica](https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/swift/AppMetrica.md) 类）。 使用 [ProfileAttribute](https://appmetrica.yandex.com/docs/zh/sdk/ios/analytics/swift/ProfileAttribute.md) 类的方法来创建用户属性。

## Instance methods {#instance_summary}

#|
|| [apply(_:)](#method_apply) | 更新用户资料的单个属性。 ||
|| [apply(from:)](#method_applyFromArray) | 更新用户资料的多个属性。 ||
|#

## Method descriptions {#method_detail}

### apply(_:) {#method_apply}

```swift translate=no
func apply(_ update: UserProfileUpdate)
```

更新用户资料的单个属性。

**参数：**

#|
|| `更新` | The `用户配置更新` 类实例。 ||
|#

### apply(from:) {#method_applyFromArray}

```swift translate=no
func apply(from updatesArray: [UserProfileUpdate])
```

更新用户资料的多个属性。

**参数：**

#|
|| `updatesArray` | Array of `用户资料更新` 实例。 ||
|#
