@Test public void bvSdkSetNewUserAuth() { BVSDK bvsdk = createTestBvSdk(); String expectedUserAuthStr = "newuserauthstr"; bvsdk.setUserAuthString(expectedUserAuthStr); verify(bvAuthenticatedUser).setUserAuthString("newuserauthstr"); verify(bvPixel, times(1)).track(any(BVPersonalizationEvent.class)); }
@MainThread public void setUserAuthString(@NonNull String userAuthString) { if (userAuthString == null || userAuthString.isEmpty()) { bvLogger.w(TAG, "userAuthString must not be empty"); return; } bvAuthenticatedUser.setUserAuthString(userAuthString); BVPersonalizationEvent event = new BVPersonalizationEvent(userAuthString); bvPixel.track(event); bvAuthenticatedUser.updateUser("user auth string update"); }
BVSDK { @MainThread public void setUserAuthString(@NonNull String userAuthString) { if (userAuthString == null || userAuthString.isEmpty()) { bvLogger.w(TAG, "userAuthString must not be empty"); return; } bvAuthenticatedUser.setUserAuthString(userAuthString); BVPersonalizationEvent event = new BVPersonalizationEvent(userAuthString); bvPixel.track(event); bvAuthenticatedUser.updateUser("user auth string update"); } }
BVSDK { @MainThread public void setUserAuthString(@NonNull String userAuthString) { if (userAuthString == null || userAuthString.isEmpty()) { bvLogger.w(TAG, "userAuthString must not be empty"); return; } bvAuthenticatedUser.setUserAuthString(userAuthString); BVPersonalizationEvent event = new BVPersonalizationEvent(userAuthString); bvPixel.track(event); bvAuthenticatedUser.updateUser("user auth string update"); } BVSDK(BVUserProvidedData bvUserProvidedData, BVLogger bvLogger, BVActivityLifecycleCallbacks bvActivityLifecycleCallbacks, final BVAuthenticatedUser bvAuthenticatedUser, Handler handler, HandlerThread backgroundThread, BVPixel bvPixel, BVWorkerData bvWorkerData, BazaarEnvironment bazaarEnvironment); }
BVSDK { @MainThread public void setUserAuthString(@NonNull String userAuthString) { if (userAuthString == null || userAuthString.isEmpty()) { bvLogger.w(TAG, "userAuthString must not be empty"); return; } bvAuthenticatedUser.setUserAuthString(userAuthString); BVPersonalizationEvent event = new BVPersonalizationEvent(userAuthString); bvPixel.track(event); bvAuthenticatedUser.updateUser("user auth string update"); } BVSDK(BVUserProvidedData bvUserProvidedData, BVLogger bvLogger, BVActivityLifecycleCallbacks bvActivityLifecycleCallbacks, final BVAuthenticatedUser bvAuthenticatedUser, Handler handler, HandlerThread backgroundThread, BVPixel bvPixel, BVWorkerData bvWorkerData, BazaarEnvironment bazaarEnvironment); static BVSDK getInstance(); @MainThread void setUserAuthString(@NonNull String userAuthString); static Builder builder(Application application, String clientId); static Builder builder(Application application, BazaarEnvironment bazaarEnvironment); static Builder builderWithConfig(Application application, BazaarEnvironment bazaarEnvironment, BVConfig bvConfig); }
BVSDK { @MainThread public void setUserAuthString(@NonNull String userAuthString) { if (userAuthString == null || userAuthString.isEmpty()) { bvLogger.w(TAG, "userAuthString must not be empty"); return; } bvAuthenticatedUser.setUserAuthString(userAuthString); BVPersonalizationEvent event = new BVPersonalizationEvent(userAuthString); bvPixel.track(event); bvAuthenticatedUser.updateUser("user auth string update"); } BVSDK(BVUserProvidedData bvUserProvidedData, BVLogger bvLogger, BVActivityLifecycleCallbacks bvActivityLifecycleCallbacks, final BVAuthenticatedUser bvAuthenticatedUser, Handler handler, HandlerThread backgroundThread, BVPixel bvPixel, BVWorkerData bvWorkerData, BazaarEnvironment bazaarEnvironment); static BVSDK getInstance(); @MainThread void setUserAuthString(@NonNull String userAuthString); static Builder builder(Application application, String clientId); static Builder builder(Application application, BazaarEnvironment bazaarEnvironment); static Builder builderWithConfig(Application application, BazaarEnvironment bazaarEnvironment, BVConfig bvConfig);  }