YMMMutableUserProfile class

The mutable version of the YMMUserProfile class with information about a user profile.

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

The YMMMutableUserProfile instance should be passed to the AppMetrica server by using the reportUserProfile method of the YMMYandexMetrica class. Use methods of the YMMProfileAttribute class to create user attributes.

Instance methods

apply(_:)

Updates a single attribute of the user profile.

applyFromArray(_:)

Updates several attributes of the user profile.

Method descriptions

apply(_:)

func apply(_ update: YMMUserProfileUpdate)

Updates a single attribute of the user profile.

Parameters:
update

The instance of the YMMUserProfileUpdate class.

applyFromArray(_:)

func applyFromArray(_ updatesArray: [YMMUserProfileUpdate])

Updates several attributes of the user profile.

Parameters:
updatesArray

Array of YMMUserProfileUpdate objects.