MutableUserProfile 类

可变版本的 UserProfile 类,用于存储用户个人资料。

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

应将 MutableUserProfile 类的实例传递到 AppMetrica 服务器,使用 reportUserProfile 方法(AppMetrica 类)。 使用 ProfileAttribute 类的方法来创建用户属性。

Instance methods

apply(_:)

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

apply(from:)

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

Method descriptions

apply(_:)

func apply(_ update: UserProfileUpdate)

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

参数:

更新

The 用户配置更新 类实例。

apply(from:)

func apply(from updatesArray: [UserProfileUpdate])

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

参数:

updatesArray

Array of 用户资料更新 实例。