@@ -2592,21 +2592,32 @@ public static void setFBAppID(String fbAppID) {
25922592 }
25932593
25942594 /**
2595- * Sets the consumer protection attribution level
2595+ * Sets the consumer protection attribution level.
25962596 *
25972597 * @param level The consumer protection attribution level {@link Defines.BranchAttributionLevel}.
25982598 */
25992599 public void setConsumerProtectionAttributionLevel (Defines .BranchAttributionLevel level ) {
2600+ setConsumerProtectionAttributionLevel (level , null );
2601+ }
2602+
2603+ /**
2604+ * Sets the consumer protection attribution level with an optional callback.
2605+ *
2606+ * @param level The consumer protection attribution level {@link Defines.BranchAttributionLevel}.
2607+ * @param callback An optional {@link TrackingStateCallback} for receiving notifications about
2608+ * the change in tracking state. This parameter can be {@code null} if no callback actions are needed.
2609+ */
2610+ public void setConsumerProtectionAttributionLevel (Defines .BranchAttributionLevel level , @ Nullable TrackingStateCallback callback ) {
26002611 prefHelper_ .setConsumerProtectionAttributionLevel (level );
26012612 BranchLogger .v ("Set Consumer Protection Preference to " + level );
26022613
26032614 if (level == Defines .BranchAttributionLevel .NONE ) {
2604- trackingController .disableTracking (context_ , true , null );
2615+ trackingController .disableTracking (context_ , true , callback );
26052616 } else {
26062617 if (trackingController .isTrackingDisabled ()) {
2607- trackingController .disableTracking (context_ , false , null );
2618+ trackingController .disableTracking (context_ , false , callback );
26082619 }
26092620 }
2610-
26112621 }
2622+
26122623}
0 commit comments