Package 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 Description UserProfile.Builderapply(UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> userProfileUpdate)Applies user profile update.UserProfilebuild()Creates theUserProfileinstance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
apply
public UserProfile.Builder apply(@NonNull UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> userProfileUpdate)Applies user profile update. Use theYandexMetrica.reportUserProfile(UserProfile)method to send updated data to the AppMetrica server.- Parameters:
userProfileUpdate- TheUserProfileUpdateobject of the attribute update.- Returns:
- The same
UserProfile.Builderobject
-
build
Creates theUserProfileinstance.- Returns:
- The
UserProfileobject
-