You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/countly.js
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ var CountlyStorage = require("./countly-storage");
30
30
31
31
varCountly={};
32
32
Countly.StorageTypes=cc.storageTypeEnums;
33
+
Countly.DeviceIdType=cc.deviceIdTypeEnums;
33
34
Countly.Bulk=Bulk;
34
35
(function(){
35
36
varSDK_VERSION="24.10.0";
@@ -627,6 +628,26 @@ Countly.Bulk = Bulk;
627
628
returnCountly.device_id;
628
629
};
629
630
631
+
/**
632
+
* Changes the current device ID according to the device ID type (the preffered method)
633
+
* @param {string} newId - new user/device ID to use. Must be a non-empty string value. Invalid values (like null, empty string or undefined) will be rejected
634
+
* */
635
+
Countly.set_id=function(newId){
636
+
cc.log(cc.logLevelEnums.INFO,`set_id, Changing the device ID to: [${newId}]`);
0 commit comments