YMMUserProfile class

Immutable class for storing the user profile.

Use the YMMMutableUserProfile class to change 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 YMMUserProfile 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

init(updates:)

Initializes the user profile with the specified set of updates.

Properties

updates

Array that contains attribute updates.

Method descriptions

init(updates:)

init(updates: [YMMUserProfileUpdate])

Initializes the user profile with the specified set of updates.

Parameters:
updates

Array that contains attribute updates.

Returns:

The instance of the YMMUserProfile class.

Property descriptions

updates

var updates: [YMMUserProfileUpdate] { get }

Array that contains attribute updates.