MutableUserProfile class

The mutable version of the UserProfile class for storing the user profile.

A user profile is a set of user attributes. User profile details are displayed in the AppMetrica report on user profiles.

The instance of the MutableUserProfile class should be passed to the AppMetrica server using the reportUserProfile method of the AppMetrica class. Use methods of the ProfileAttribute class to create user attributes.

Instance methods

apply(_:)

Updates a single attribute of the user profile.

apply(from:)

Updates several attributes of the user profile.

Method descriptions

apply(_:)

func apply(_ update: UserProfileUpdate)

Updates a single attribute of the user profile.

Parameters:

update

The UserProfileUpdate class instance.

apply(from:)

func apply(from updatesArray: [UserProfileUpdate])

Updates several attributes of the user profile.

Parameters:

updatesArray

Array of UserProfileUpdate instances.