File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
sdk-java/src/main/java/ly/count/sdk/java Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,7 @@ public class Config {
243243 protected String city = null ;
244244 protected String country = null ;
245245 protected boolean locationEnabled = true ;
246+ protected boolean autoSendUserProperties = true ;
246247
247248 // TODO: storage limits & configuration
248249 // protected int maxRequestsStored = 0;
@@ -1480,4 +1481,19 @@ public String toString() {
14801481 return "DID " + id + " ( " + strategy + ")" ;
14811482 }
14821483 }
1484+
1485+ // Disabling new Added features
1486+
1487+ /**
1488+ * Disable automatic sending of user properties on
1489+ * - When an event is recorded
1490+ * - During an internal timer tick
1491+ * - Upon flushing the event queue
1492+ *
1493+ * @return {@code this} instance for method chaining
1494+ */
1495+ public Config disableAutoSendUserProperties () {
1496+ this .autoSendUserProperties = false ;
1497+ return this ;
1498+ }
14831499}
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ public class InternalConfig extends Config {
3232 protected IdGenerator viewIdGenerator ;
3333 protected IdGenerator eventIdGenerator ;
3434 protected ViewIdProvider viewIdProvider ;
35+
3536 /**
3637 * Shouldn't be used!
3738 */
@@ -211,4 +212,8 @@ String[] getLocationParams() {
211212 boolean isLocationDisabled () {
212213 return !locationEnabled ;
213214 }
215+
216+ boolean isAutoSendUserProperties () {
217+ return autoSendUserProperties ;
218+ }
214219}
You can’t perform that action at this time.
0 commit comments