com.yandex.metrica.profile
Class UserProfile.Builder
java.lang.Object
com.yandex.metrica.profile.UserProfile.Builder
- Enclosing class:
- UserProfile
public static class UserProfile.Builder
extends java.lang.Object
Builder class for
UserProfile
objects.Method Summary
Modifier and Type | Method and Description |
---|---|
UserProfile.Builder | apply(UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> userProfileUpdate)
Applies user profile update.
|
UserProfile | build()
Creates the
UserProfile instance. |
Method Detail
apply
public UserProfile.Builder apply(@NonNull UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> userProfileUpdate)
Applies user profile update. Use the
YandexMetrica.reportUserProfile(UserProfile)
method to send updated data to the AppMetrica server.- Parameters:
userProfileUpdate
- TheUserProfileUpdate
object of the attribute update.- Returns:
- The same
UserProfile.Builder
object
build
@NonNull public UserProfile build()
Creates the
UserProfile
instance.- Returns:
- The
UserProfile
object