public class UserProfile
extends java.lang.Object
User profile is a set of user attributes. User profile details are displayed in the AppMetrica User profiles report.
The UserProfile object should be passed to the AppMetrica server by using the
YandexMetrica.reportUserProfile(UserProfile) method.
User profiles are stored on the AppMetrica server.
EXAMPLE:
UserProfile userProfile = new UserProfile.Builder()
.apply(Attribute.customString("foo_attribute").withValue("baz_value"))
.apply(Attribute.name().withName("John"))
.apply(Attribute.gender().withValue(GenderAttribute.Gender.MALE))
.apply(Attribute.notificationEnabled().withValue(false))
.build();
YandexMetrica.reportUserProfile(userProfile);
YandexMetrica.setProfileId("id_1");
| Modifier and Type | Class and Description |
|---|---|
static class |
UserProfile.Builder
Builder class for
UserProfile objects. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher>> |
getUserProfileUpdates() |
static UserProfile.Builder |
newBuilder()
Creates the new instance of
UserProfile.Builder. |
@NonNull public java.util.List<UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher>> getUserProfileUpdates()
@NonNull public static UserProfile.Builder newBuilder()
UserProfile.Builder.UserProfile.Builder object.