public class Attribute
extends java.lang.Object
Класс Attribute.

Методы класса создают предопределенные и собственные атрибуты профиля.

AppMetrica позволяет создать до 100 собственных атрибутов.

Атрибуты применяются с помощью метода UserProfile.Builder.apply(UserProfileUpdate).

Constructor Summary

Constructors
Constructor and Description
Attribute() 

Method Summary

All Methods
Static Methods
Concrete Methods
Modifier and TypeMethod and Description
static BirthDateAttributebirthDate()
Создает предопределенный атрибут для даты рождения/возраста.
static BooleanAttributecustomBoolean(java.lang.String key)
Создает собственный атрибут типа bool.
static CounterAttributecustomCounter(java.lang.String key)
Создает собственный атрибут типа счетчик.
static NumberAttributecustomNumber(java.lang.String key)
Создает собственный атрибут типа number.
static StringAttributecustomString(java.lang.String key)
Создает собственный атрибут типа string
static GenderAttributegender()
Создает предопределенный атрибут для пола.
static NameAttributename()
Создает предопределенный атрибут для имени.
static NotificationsEnabledAttributenotificationsEnabled()
Создает предопределенный атрибут для статуса уведомлений.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

Attribute

public Attribute()

Method Detail

customString

@NonNull
public static StringAttribute customString(@NonNull
                                                    java.lang.String key)
Создает собственный атрибут типа string
Parameters:
key - Название атрибута. Может содержать до 200 символов.
Returns:
Объект StringAttribute

customNumber

@NonNull
public static NumberAttribute customNumber(@NonNull
                                                    java.lang.String key)
Создает собственный атрибут типа number.
Parameters:
key - Название атрибута. Может содержать до 200 символов.
Returns:
Объект NumberAttribute

customBoolean

@NonNull
public static BooleanAttribute customBoolean(@NonNull
                                                      java.lang.String key)
Создает собственный атрибут типа bool.
Parameters:
key - Название атрибута. Может содержать до 200 символов.
Returns:
Объект BooleanAttribute

customCounter

@NonNull
public static CounterAttribute customCounter(@NonNull
                                                      java.lang.String key)
Создает собственный атрибут типа счетчик.
Parameters:
key - Название атрибута. Может содержать до 200 символов.
Returns:
Объект CounterAttribute

gender

@NonNull
public static GenderAttribute gender()
Создает предопределенный атрибут для пола.
Returns:
Объект GenderAttribute

birthDate

@NonNull
public static BirthDateAttribute birthDate()
Создает предопределенный атрибут для даты рождения/возраста.
Returns:
Объект BirthDateAttribute

notificationsEnabled

@NonNull
public static NotificationsEnabledAttribute notificationsEnabled()
Создает предопределенный атрибут для статуса уведомлений. Показывает, разрешил ли пользователь показ уведомлений.
Returns:
Объект NotificationsEnabledAttribute

name

@NonNull
public static NameAttribute name()
Создает предопределенный атрибут для имени.
Returns:
Объект NameAttribute