mixpanel-react-native 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/MixpanelReactNative.podspec +1 -1
- package/__tests__/index.test.js +8 -2
- package/__tests__/jest_setup.js +1 -0
- package/android/bin/.gradle/5.5/executionHistory/executionHistory.lock +0 -0
- package/android/bin/.gradle/5.5/fileChanges/last-build.bin +0 -0
- package/android/bin/.gradle/5.5/fileHashes/fileHashes.bin +0 -0
- package/android/bin/.gradle/5.5/fileHashes/fileHashes.lock +0 -0
- package/android/bin/.gradle/5.5/gc.properties +0 -0
- package/android/bin/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/bin/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/bin/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/bin/.gradle/vcs-1/gc.properties +0 -0
- package/android/bin/.idea/caches/build_file_checksums.ser +0 -0
- package/android/bin/.idea/compiler.xml +6 -0
- package/android/bin/.idea/gradle.xml +21 -0
- package/android/bin/.idea/jarRepositories.xml +30 -0
- package/android/bin/.idea/libraries/Gradle__com_android_support_appcompat_v7_23_0_1_aar.xml +16 -0
- package/android/bin/.idea/libraries/Gradle__com_android_support_recyclerview_v7_23_0_1_aar.xml +13 -0
- package/android/bin/.idea/libraries/Gradle__com_android_support_support_annotations_23_0_1.xml +11 -0
- package/android/bin/.idea/libraries/Gradle__com_android_support_support_v4_23_0_1_aar.xml +17 -0
- package/android/bin/.idea/libraries/Gradle__com_facebook_fresco_drawee_0_8_1_aar.xml +13 -0
- package/android/bin/.idea/libraries/Gradle__com_facebook_fresco_fbcore_0_8_1_aar.xml +13 -0
- package/android/bin/.idea/libraries/Gradle__com_facebook_fresco_fresco_0_8_1_aar.xml +13 -0
- package/android/bin/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_0_8_1_aar.xml +13 -0
- package/android/bin/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp_0_8_1_aar.xml +13 -0
- package/android/bin/.idea/libraries/Gradle__com_facebook_react_react_native_0_20_1_aar.xml +17 -0
- package/android/bin/.idea/libraries/Gradle__com_facebook_stetho_stetho_1_2_0.xml +11 -0
- package/android/bin/.idea/libraries/Gradle__com_facebook_stetho_stetho_okhttp_1_2_0.xml +11 -0
- package/android/bin/.idea/libraries/Gradle__com_fasterxml_jackson_core_jackson_core_2_2_3.xml +11 -0
- package/android/bin/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_0.xml +11 -0
- package/android/bin/.idea/libraries/Gradle__com_mixpanel_android_mixpanel_android_6_0_0_beta1_aar.xml +16 -0
- package/android/bin/.idea/libraries/Gradle__com_nineoldandroids_library_2_4_0.xml +11 -0
- package/android/bin/.idea/libraries/Gradle__com_parse_bolts_bolts_android_1_1_4.xml +11 -0
- package/android/bin/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_2_5_0.xml +11 -0
- package/android/bin/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_ws_2_5_0.xml +11 -0
- package/android/bin/.idea/libraries/Gradle__com_squareup_okio_okio_1_6_0.xml +11 -0
- package/android/bin/.idea/libraries/Gradle__commons_cli_commons_cli_1_2.xml +11 -0
- package/android/bin/.idea/libraries/Gradle__org_webkit_android_jsc_r174650_aar.xml +11 -0
- package/android/bin/.idea/misc.xml +9 -0
- package/android/bin/.idea/modules.xml +8 -0
- package/android/bin/.idea/vcs.xml +6 -0
- package/android/bin/.idea/workspace.xml +57 -0
- package/android/bin/.project +34 -0
- package/android/bin/.settings/org.eclipse.buildship.core.prefs +13 -0
- package/android/bin/build.gradle +38 -0
- package/android/bin/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/bin/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/android/bin/gradlew +172 -0
- package/android/bin/gradlew.bat +84 -0
- package/android/bin/local.properties +8 -0
- package/android/bin/src/main/AndroidManifest.xml +2 -0
- package/android/build.gradle +8 -1
- package/android/src/main/java/com/mixpanel/reactnative/MixpanelReactNativeModule.java +15 -1
- package/docs/Mixpanel.html +164 -25
- package/docs/MixpanelGroup.html +7 -7
- package/docs/People.html +12 -12
- package/docs/index.html +1 -1
- package/docs/index.js.html +15 -2
- package/index.d.ts +1 -1
- package/index.js +14 -1
- package/ios/MixpanelReactNative.m +2 -0
- package/ios/MixpanelReactNative.swift +10 -0
- package/package.json +1 -1
- package/release.py +3 -3
package/docs/Mixpanel.html
CHANGED
|
@@ -469,7 +469,7 @@ Initializes Mixpanel and return an instance of Mixpanel the given project token.
|
|
|
469
469
|
|
|
470
470
|
<dt class="tag-source">Source:</dt>
|
|
471
471
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
472
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
472
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line335">line 335</a>
|
|
473
473
|
</li></ul></dd>
|
|
474
474
|
|
|
475
475
|
|
|
@@ -636,7 +636,7 @@ Multiple aliases can point to the same identifier.
|
|
|
636
636
|
|
|
637
637
|
<dt class="tag-source">Source:</dt>
|
|
638
638
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
639
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
639
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line236">line 236</a>
|
|
640
640
|
</li></ul></dd>
|
|
641
641
|
|
|
642
642
|
|
|
@@ -729,7 +729,7 @@ superProperties registered before the clearSuperProperties method was called.
|
|
|
729
729
|
|
|
730
730
|
<dt class="tag-source">Source:</dt>
|
|
731
731
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
732
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
732
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line443">line 443</a>
|
|
733
733
|
</li></ul></dd>
|
|
734
734
|
|
|
735
735
|
|
|
@@ -891,7 +891,7 @@ to Group Analytics using the same group value will create and store new values.<
|
|
|
891
891
|
|
|
892
892
|
<dt class="tag-source">Source:</dt>
|
|
893
893
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
894
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
894
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line363">line 363</a>
|
|
895
895
|
</li></ul></dd>
|
|
896
896
|
|
|
897
897
|
|
|
@@ -1028,7 +1028,7 @@ to Group Analytics using the same group value will create and store new values.<
|
|
|
1028
1028
|
|
|
1029
1029
|
<dt class="tag-source">Source:</dt>
|
|
1030
1030
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1031
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
1031
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line468">line 468</a>
|
|
1032
1032
|
</li></ul></dd>
|
|
1033
1033
|
|
|
1034
1034
|
|
|
@@ -1144,7 +1144,7 @@ send all remaining messages to the server.
|
|
|
1144
1144
|
|
|
1145
1145
|
<dt class="tag-source">Source:</dt>
|
|
1146
1146
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1147
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
1147
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line528">line 528</a>
|
|
1148
1148
|
</li></ul></dd>
|
|
1149
1149
|
|
|
1150
1150
|
|
|
@@ -1240,7 +1240,7 @@ const deviceId = await mixpanel.getDeviceId();
|
|
|
1240
1240
|
|
|
1241
1241
|
<dt class="tag-source">Source:</dt>
|
|
1242
1242
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1243
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
1243
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line515">line 515</a>
|
|
1244
1244
|
</li></ul></dd>
|
|
1245
1245
|
|
|
1246
1246
|
|
|
@@ -1358,7 +1358,7 @@ const distinctId = await mixpanel.getDistinctId();
|
|
|
1358
1358
|
|
|
1359
1359
|
<dt class="tag-source">Source:</dt>
|
|
1360
1360
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1361
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
1361
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line497">line 497</a>
|
|
1362
1362
|
</li></ul></dd>
|
|
1363
1363
|
|
|
1364
1364
|
|
|
@@ -1541,7 +1541,7 @@ Group Analytics properties.
|
|
|
1541
1541
|
|
|
1542
1542
|
<dt class="tag-source">Source:</dt>
|
|
1543
1543
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1544
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
1544
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line325">line 325</a>
|
|
1545
1545
|
</li></ul></dd>
|
|
1546
1546
|
|
|
1547
1547
|
|
|
@@ -1641,7 +1641,7 @@ People Analytics properties.
|
|
|
1641
1641
|
|
|
1642
1642
|
<dt class="tag-source">Source:</dt>
|
|
1643
1643
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1644
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
1644
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line275">line 275</a>
|
|
1645
1645
|
</li></ul></dd>
|
|
1646
1646
|
|
|
1647
1647
|
|
|
@@ -1755,7 +1755,7 @@ and persist beyond the lifetime of your application.
|
|
|
1755
1755
|
|
|
1756
1756
|
<dt class="tag-source">Source:</dt>
|
|
1757
1757
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1758
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
1758
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line431">line 431</a>
|
|
1759
1759
|
</li></ul></dd>
|
|
1760
1760
|
|
|
1761
1761
|
|
|
@@ -1865,7 +1865,7 @@ and persist beyond the lifetime of your application.
|
|
|
1865
1865
|
|
|
1866
1866
|
<dt class="tag-source">Source:</dt>
|
|
1867
1867
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1868
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
1868
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line162">line 162</a>
|
|
1869
1869
|
</li></ul></dd>
|
|
1870
1870
|
|
|
1871
1871
|
|
|
@@ -2036,7 +2036,7 @@ your application.
|
|
|
2036
2036
|
|
|
2037
2037
|
<dt class="tag-source">Source:</dt>
|
|
2038
2038
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2039
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
2039
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line207">line 207</a>
|
|
2040
2040
|
</li></ul></dd>
|
|
2041
2041
|
|
|
2042
2042
|
|
|
@@ -2348,7 +2348,7 @@ This method will internally track an opt-in event to your project.
|
|
|
2348
2348
|
|
|
2349
2349
|
<dt class="tag-source">Source:</dt>
|
|
2350
2350
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2351
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
2351
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line172">line 172</a>
|
|
2352
2352
|
</li></ul></dd>
|
|
2353
2353
|
|
|
2354
2354
|
|
|
@@ -2440,7 +2440,7 @@ This method will also remove any user-related information from the device.
|
|
|
2440
2440
|
|
|
2441
2441
|
<dt class="tag-source">Source:</dt>
|
|
2442
2442
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2443
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
2443
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line183">line 183</a>
|
|
2444
2444
|
</li></ul></dd>
|
|
2445
2445
|
|
|
2446
2446
|
|
|
@@ -2587,7 +2587,7 @@ to remove a superProperty, call unregisterSuperProperty() or clearSuperPropertie
|
|
|
2587
2587
|
|
|
2588
2588
|
<dt class="tag-source">Source:</dt>
|
|
2589
2589
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2590
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
2590
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line385">line 385</a>
|
|
2591
2591
|
</li></ul></dd>
|
|
2592
2592
|
|
|
2593
2593
|
|
|
@@ -2727,7 +2727,7 @@ same names has already been registered.
|
|
|
2727
2727
|
|
|
2728
2728
|
<dt class="tag-source">Source:</dt>
|
|
2729
2729
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2730
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
2730
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line400">line 400</a>
|
|
2731
2731
|
</li></ul></dd>
|
|
2732
2732
|
|
|
2733
2733
|
|
|
@@ -2887,7 +2887,7 @@ same names has already been registered.
|
|
|
2887
2887
|
|
|
2888
2888
|
<dt class="tag-source">Source:</dt>
|
|
2889
2889
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2890
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
2890
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line348">line 348</a>
|
|
2891
2891
|
</li></ul></dd>
|
|
2892
2892
|
|
|
2893
2893
|
|
|
@@ -2976,7 +2976,146 @@ same names has already been registered.
|
|
|
2976
2976
|
|
|
2977
2977
|
<dt class="tag-source">Source:</dt>
|
|
2978
2978
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2979
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
2979
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line479">line 479</a>
|
|
2980
|
+
</li></ul></dd>
|
|
2981
|
+
|
|
2982
|
+
|
|
2983
|
+
|
|
2984
|
+
|
|
2985
|
+
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
</dl>
|
|
2989
|
+
|
|
2990
|
+
|
|
2991
|
+
|
|
2992
|
+
|
|
2993
|
+
|
|
2994
|
+
|
|
2995
|
+
|
|
2996
|
+
|
|
2997
|
+
|
|
2998
|
+
|
|
2999
|
+
|
|
3000
|
+
|
|
3001
|
+
|
|
3002
|
+
|
|
3003
|
+
|
|
3004
|
+
|
|
3005
|
+
|
|
3006
|
+
|
|
3007
|
+
|
|
3008
|
+
|
|
3009
|
+
|
|
3010
|
+
|
|
3011
|
+
|
|
3012
|
+
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
<h4 class="name" id="setFlushBatchSize"><span class="type-signature"></span>setFlushBatchSize<span class="signature">(flushBatchSize)</span><span class="type-signature"></span></h4>
|
|
3016
|
+
|
|
3017
|
+
|
|
3018
|
+
|
|
3019
|
+
|
|
3020
|
+
|
|
3021
|
+
|
|
3022
|
+
<div class="description">
|
|
3023
|
+
Set the number of events sent in a single network request to the Mixpanel server.
|
|
3024
|
+
By configuring this value, you can optimize network usage and manage the frequency of communication between the client and the server. The maximum size is 50; any value over 50 will default to 50.
|
|
3025
|
+
</div>
|
|
3026
|
+
|
|
3027
|
+
|
|
3028
|
+
|
|
3029
|
+
|
|
3030
|
+
|
|
3031
|
+
|
|
3032
|
+
|
|
3033
|
+
|
|
3034
|
+
|
|
3035
|
+
<h5>Parameters:</h5>
|
|
3036
|
+
|
|
3037
|
+
|
|
3038
|
+
<table class="params">
|
|
3039
|
+
<thead>
|
|
3040
|
+
<tr>
|
|
3041
|
+
|
|
3042
|
+
<th>Name</th>
|
|
3043
|
+
|
|
3044
|
+
|
|
3045
|
+
<th>Type</th>
|
|
3046
|
+
|
|
3047
|
+
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
<th class="last">Description</th>
|
|
3052
|
+
</tr>
|
|
3053
|
+
</thead>
|
|
3054
|
+
|
|
3055
|
+
<tbody>
|
|
3056
|
+
|
|
3057
|
+
|
|
3058
|
+
<tr>
|
|
3059
|
+
|
|
3060
|
+
<td class="name"><code>flushBatchSize</code></td>
|
|
3061
|
+
|
|
3062
|
+
|
|
3063
|
+
<td class="type">
|
|
3064
|
+
|
|
3065
|
+
|
|
3066
|
+
<span class="param-type">integer</span>
|
|
3067
|
+
|
|
3068
|
+
|
|
3069
|
+
|
|
3070
|
+
</td>
|
|
3071
|
+
|
|
3072
|
+
|
|
3073
|
+
|
|
3074
|
+
|
|
3075
|
+
|
|
3076
|
+
<td class="description last">whether to automatically send the client IP Address.
|
|
3077
|
+
Defaults to true.</td>
|
|
3078
|
+
</tr>
|
|
3079
|
+
|
|
3080
|
+
|
|
3081
|
+
</tbody>
|
|
3082
|
+
</table>
|
|
3083
|
+
|
|
3084
|
+
|
|
3085
|
+
|
|
3086
|
+
|
|
3087
|
+
|
|
3088
|
+
|
|
3089
|
+
<dl class="details">
|
|
3090
|
+
|
|
3091
|
+
|
|
3092
|
+
|
|
3093
|
+
|
|
3094
|
+
|
|
3095
|
+
|
|
3096
|
+
|
|
3097
|
+
|
|
3098
|
+
|
|
3099
|
+
|
|
3100
|
+
|
|
3101
|
+
|
|
3102
|
+
|
|
3103
|
+
|
|
3104
|
+
|
|
3105
|
+
|
|
3106
|
+
|
|
3107
|
+
|
|
3108
|
+
|
|
3109
|
+
|
|
3110
|
+
|
|
3111
|
+
|
|
3112
|
+
|
|
3113
|
+
|
|
3114
|
+
|
|
3115
|
+
|
|
3116
|
+
<dt class="tag-source">Source:</dt>
|
|
3117
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
3118
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line152">line 152</a>
|
|
2980
3119
|
</li></ul></dd>
|
|
2981
3120
|
|
|
2982
3121
|
|
|
@@ -3274,7 +3413,7 @@ when the app enters the background on iOS. This is set to true by default.
|
|
|
3274
3413
|
|
|
3275
3414
|
<dt class="tag-source">Source:</dt>
|
|
3276
3415
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
3277
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
3416
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line309">line 309</a>
|
|
3278
3417
|
</li></ul></dd>
|
|
3279
3418
|
|
|
3280
3419
|
|
|
@@ -3831,7 +3970,7 @@ property, representing the number of seconds between your calls.
|
|
|
3831
3970
|
|
|
3832
3971
|
<dt class="tag-source">Source:</dt>
|
|
3833
3972
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
3834
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
3973
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line454">line 454</a>
|
|
3835
3974
|
</li></ul></dd>
|
|
3836
3975
|
|
|
3837
3976
|
|
|
@@ -3997,7 +4136,7 @@ that event.
|
|
|
3997
4136
|
|
|
3998
4137
|
<dt class="tag-source">Source:</dt>
|
|
3999
4138
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
4000
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
4139
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line258">line 258</a>
|
|
4001
4140
|
</li></ul></dd>
|
|
4002
4141
|
|
|
4003
4142
|
|
|
@@ -4186,7 +4325,7 @@ that event. Group key/value pairs are upserted into the property map before trac
|
|
|
4186
4325
|
|
|
4187
4326
|
<dt class="tag-source">Source:</dt>
|
|
4188
4327
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
4189
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
4328
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line293">line 293</a>
|
|
4190
4329
|
</li></ul></dd>
|
|
4191
4330
|
|
|
4192
4331
|
|
|
@@ -4327,7 +4466,7 @@ To clear all superProperties, use clearSuperProperties()
|
|
|
4327
4466
|
|
|
4328
4467
|
<dt class="tag-source">Source:</dt>
|
|
4329
4468
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
4330
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
4469
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line416">line 416</a>
|
|
4331
4470
|
</li></ul></dd>
|
|
4332
4471
|
|
|
4333
4472
|
|
|
@@ -4379,7 +4518,7 @@ To clear all superProperties, use clearSuperProperties()
|
|
|
4379
4518
|
<br class="clear">
|
|
4380
4519
|
|
|
4381
4520
|
<footer>
|
|
4382
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri
|
|
4521
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Dec 01 2023 16:27:57 GMT-0800 (Pacific Standard Time)
|
|
4383
4522
|
</footer>
|
|
4384
4523
|
|
|
4385
4524
|
<script> prettyPrint(); </script>
|
package/docs/MixpanelGroup.html
CHANGED
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
|
|
96
96
|
<dt class="tag-source">Source:</dt>
|
|
97
97
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
98
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
98
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line745">line 745</a>
|
|
99
99
|
</li></ul></dd>
|
|
100
100
|
|
|
101
101
|
|
|
@@ -284,7 +284,7 @@ If the property exists and is not list-valued, the remove will be ignored.
|
|
|
284
284
|
|
|
285
285
|
<dt class="tag-source">Source:</dt>
|
|
286
286
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
287
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
287
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line816">line 816</a>
|
|
288
288
|
</li></ul></dd>
|
|
289
289
|
|
|
290
290
|
|
|
@@ -446,7 +446,7 @@ possibly overwriting an existing property with the same name.
|
|
|
446
446
|
|
|
447
447
|
<dt class="tag-source">Source:</dt>
|
|
448
448
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
449
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
449
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line764">line 764</a>
|
|
450
450
|
</li></ul></dd>
|
|
451
451
|
|
|
452
452
|
|
|
@@ -606,7 +606,7 @@ possibly overwriting an existing property with the same name.
|
|
|
606
606
|
|
|
607
607
|
<dt class="tag-source">Source:</dt>
|
|
608
608
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
609
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
609
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line783">line 783</a>
|
|
610
610
|
</li></ul></dd>
|
|
611
611
|
|
|
612
612
|
|
|
@@ -768,7 +768,7 @@ If the property exists and is not list-valued, the union will be ignored.
|
|
|
768
768
|
|
|
769
769
|
<dt class="tag-source">Source:</dt>
|
|
770
770
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
771
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
771
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line832">line 832</a>
|
|
772
772
|
</li></ul></dd>
|
|
773
773
|
|
|
774
774
|
|
|
@@ -905,7 +905,7 @@ If the property exists and is not list-valued, the union will be ignored.
|
|
|
905
905
|
|
|
906
906
|
<dt class="tag-source">Source:</dt>
|
|
907
907
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
908
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
908
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line801">line 801</a>
|
|
909
909
|
</li></ul></dd>
|
|
910
910
|
|
|
911
911
|
|
|
@@ -957,7 +957,7 @@ If the property exists and is not list-valued, the union will be ignored.
|
|
|
957
957
|
<br class="clear">
|
|
958
958
|
|
|
959
959
|
<footer>
|
|
960
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri
|
|
960
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Dec 01 2023 16:27:57 GMT-0800 (Pacific Standard Time)
|
|
961
961
|
</footer>
|
|
962
962
|
|
|
963
963
|
<script> prettyPrint(); </script>
|
package/docs/People.html
CHANGED
|
@@ -100,7 +100,7 @@ call to identify using a different id.</div>
|
|
|
100
100
|
|
|
101
101
|
<dt class="tag-source">Source:</dt>
|
|
102
102
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
103
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
103
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line544">line 544</a>
|
|
104
104
|
</li></ul></dd>
|
|
105
105
|
|
|
106
106
|
|
|
@@ -289,7 +289,7 @@ currently have a list value, the append will be ignored.
|
|
|
289
289
|
|
|
290
290
|
<dt class="tag-source">Source:</dt>
|
|
291
291
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
292
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
292
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line635">line 635</a>
|
|
293
293
|
</li></ul></dd>
|
|
294
294
|
|
|
295
295
|
|
|
@@ -377,7 +377,7 @@ currently have a list value, the append will be ignored.
|
|
|
377
377
|
|
|
378
378
|
<dt class="tag-source">Source:</dt>
|
|
379
379
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
380
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
380
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line725">line 725</a>
|
|
381
381
|
</li></ul></dd>
|
|
382
382
|
|
|
383
383
|
|
|
@@ -468,7 +468,7 @@ to People Analytics using the same distinct id will create and store new values.
|
|
|
468
468
|
|
|
469
469
|
<dt class="tag-source">Source:</dt>
|
|
470
470
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
471
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
471
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line735">line 735</a>
|
|
472
472
|
</li></ul></dd>
|
|
473
473
|
|
|
474
474
|
|
|
@@ -630,7 +630,7 @@ provide a negative number for the value.
|
|
|
630
630
|
|
|
631
631
|
<dt class="tag-source">Source:</dt>
|
|
632
632
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
633
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
633
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line603">line 603</a>
|
|
634
634
|
</li></ul></dd>
|
|
635
635
|
|
|
636
636
|
|
|
@@ -792,7 +792,7 @@ If the property exists and is not list-valued, the remove will be ignored.
|
|
|
792
792
|
|
|
793
793
|
<dt class="tag-source">Source:</dt>
|
|
794
794
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
795
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
795
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line679">line 679</a>
|
|
796
796
|
</li></ul></dd>
|
|
797
797
|
|
|
798
798
|
|
|
@@ -954,7 +954,7 @@ possibly overwriting an existing property with the same name.
|
|
|
954
954
|
|
|
955
955
|
<dt class="tag-source">Source:</dt>
|
|
956
956
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
957
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
957
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line561">line 561</a>
|
|
958
958
|
</li></ul></dd>
|
|
959
959
|
|
|
960
960
|
|
|
@@ -1114,7 +1114,7 @@ possibly overwriting an existing property with the same name.
|
|
|
1114
1114
|
|
|
1115
1115
|
<dt class="tag-source">Source:</dt>
|
|
1116
1116
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1117
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
1117
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line580">line 580</a>
|
|
1118
1118
|
</li></ul></dd>
|
|
1119
1119
|
|
|
1120
1120
|
|
|
@@ -1274,7 +1274,7 @@ possibly overwriting an existing property with the same name.
|
|
|
1274
1274
|
|
|
1275
1275
|
<dt class="tag-source">Source:</dt>
|
|
1276
1276
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1277
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
1277
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line711">line 711</a>
|
|
1278
1278
|
</li></ul></dd>
|
|
1279
1279
|
|
|
1280
1280
|
|
|
@@ -1436,7 +1436,7 @@ If the property exists and is not list-valued, the union will be ignored.
|
|
|
1436
1436
|
|
|
1437
1437
|
<dt class="tag-source">Source:</dt>
|
|
1438
1438
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1439
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
1439
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line658">line 658</a>
|
|
1440
1440
|
</li></ul></dd>
|
|
1441
1441
|
|
|
1442
1442
|
|
|
@@ -1573,7 +1573,7 @@ If the property exists and is not list-valued, the union will be ignored.
|
|
|
1573
1573
|
|
|
1574
1574
|
<dt class="tag-source">Source:</dt>
|
|
1575
1575
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1576
|
-
<a href="index.js.html">index.js</a>, <a href="index.js.html#
|
|
1576
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line698">line 698</a>
|
|
1577
1577
|
</li></ul></dd>
|
|
1578
1578
|
|
|
1579
1579
|
|
|
@@ -1625,7 +1625,7 @@ If the property exists and is not list-valued, the union will be ignored.
|
|
|
1625
1625
|
<br class="clear">
|
|
1626
1626
|
|
|
1627
1627
|
<footer>
|
|
1628
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri
|
|
1628
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Dec 01 2023 16:27:57 GMT-0800 (Pacific Standard Time)
|
|
1629
1629
|
</footer>
|
|
1630
1630
|
|
|
1631
1631
|
<script> prettyPrint(); </script>
|
package/docs/index.html
CHANGED
|
@@ -179,7 +179,7 @@ Please refer to our <a href="https://mixpanel.com/legal/app-store-privacy-detai
|
|
|
179
179
|
<br class="clear">
|
|
180
180
|
|
|
181
181
|
<footer>
|
|
182
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri
|
|
182
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Dec 01 2023 16:27:57 GMT-0800 (Pacific Standard Time)
|
|
183
183
|
</footer>
|
|
184
184
|
|
|
185
185
|
<script> prettyPrint(); </script>
|
package/docs/index.js.html
CHANGED
|
@@ -168,6 +168,19 @@ export class Mixpanel {
|
|
|
168
168
|
setUseIpAddressForGeolocation(useIpAddressForGeolocation) {
|
|
169
169
|
MixpanelReactNative.setUseIpAddressForGeolocation(this.token, useIpAddressForGeolocation);
|
|
170
170
|
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Set the number of events sent in a single network request to the Mixpanel server.
|
|
174
|
+
* By configuring this value, you can optimize network usage and manage the frequency of communication between the client and the server. The maximum size is 50; any value over 50 will default to 50.
|
|
175
|
+
*
|
|
176
|
+
* @param {integer} flushBatchSize whether to automatically send the client IP Address.
|
|
177
|
+
* Defaults to true.
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
setFlushBatchSize(flushBatchSize) {
|
|
181
|
+
MixpanelReactNative.setFlushBatchSize(this.token, flushBatchSize);
|
|
182
|
+
}
|
|
183
|
+
|
|
171
184
|
|
|
172
185
|
/**
|
|
173
186
|
* Will return true if the user has opted out from tracking.
|
|
@@ -220,7 +233,7 @@ export class Mixpanel {
|
|
|
220
233
|
*
|
|
221
234
|
*/
|
|
222
235
|
identify(distinctId) {
|
|
223
|
-
return new Promise((
|
|
236
|
+
return new Promise((resolve, reject) => {
|
|
224
237
|
if (!StringHelper.isValid(distinctId)) {
|
|
225
238
|
StringHelper.raiseError(PARAMS.DISTINCT_ID);
|
|
226
239
|
reject(new Error('Invalid distinctId'));
|
|
@@ -940,7 +953,7 @@ class ObjectHelper {
|
|
|
940
953
|
<br class="clear">
|
|
941
954
|
|
|
942
955
|
<footer>
|
|
943
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri
|
|
956
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Dec 01 2023 16:27:57 GMT-0800 (Pacific Standard Time)
|
|
944
957
|
</footer>
|
|
945
958
|
|
|
946
959
|
<script> prettyPrint(); </script>
|
package/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export class Mixpanel {
|
|
|
8
8
|
setServerURL(serverURL: string): void;
|
|
9
9
|
setLoggingEnabled(loggingEnabled: boolean): void;
|
|
10
10
|
setFlushOnBackground(flushOnBackground: boolean): void;
|
|
11
|
-
|
|
12
11
|
setUseIpAddressForGeolocation(useIpAddressForGeolocation: boolean): void;
|
|
12
|
+
setFlushBatchSize(flushBatchSize: number): void;
|
|
13
13
|
hasOptedOutTracking(): Promise<boolean>;
|
|
14
14
|
optInTracking(): void;
|
|
15
15
|
optOutTracking(): void;
|
package/index.js
CHANGED
|
@@ -140,6 +140,19 @@ export class Mixpanel {
|
|
|
140
140
|
setUseIpAddressForGeolocation(useIpAddressForGeolocation) {
|
|
141
141
|
MixpanelReactNative.setUseIpAddressForGeolocation(this.token, useIpAddressForGeolocation);
|
|
142
142
|
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Set the number of events sent in a single network request to the Mixpanel server.
|
|
146
|
+
* By configuring this value, you can optimize network usage and manage the frequency of communication between the client and the server. The maximum size is 50; any value over 50 will default to 50.
|
|
147
|
+
*
|
|
148
|
+
* @param {integer} flushBatchSize whether to automatically send the client IP Address.
|
|
149
|
+
* Defaults to true.
|
|
150
|
+
*
|
|
151
|
+
*/
|
|
152
|
+
setFlushBatchSize(flushBatchSize) {
|
|
153
|
+
MixpanelReactNative.setFlushBatchSize(this.token, flushBatchSize);
|
|
154
|
+
}
|
|
155
|
+
|
|
143
156
|
|
|
144
157
|
/**
|
|
145
158
|
* Will return true if the user has opted out from tracking.
|
|
@@ -192,7 +205,7 @@ export class Mixpanel {
|
|
|
192
205
|
*
|
|
193
206
|
*/
|
|
194
207
|
identify(distinctId) {
|
|
195
|
-
return new Promise((
|
|
208
|
+
return new Promise((resolve, reject) => {
|
|
196
209
|
if (!StringHelper.isValid(distinctId)) {
|
|
197
210
|
StringHelper.raiseError(PARAMS.DISTINCT_ID);
|
|
198
211
|
reject(new Error('Invalid distinctId'));
|
|
@@ -16,6 +16,8 @@ RCT_EXTERN_METHOD(setFlushOnBackground:(NSString *)token flushOnBackground:(BOOL
|
|
|
16
16
|
|
|
17
17
|
RCT_EXTERN_METHOD(setUseIpAddressForGeolocation:(NSString *)token useIpAddressForGeolocation:(BOOL)useIpAddressForGeolocation resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
18
18
|
|
|
19
|
+
RCT_EXTERN_METHOD(setFlushBatchSize:(NSString *)token flushBatchSize:(NSInteger)flushBatchSize resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
20
|
+
|
|
19
21
|
// MARK: - Opting Users Out of Tracking
|
|
20
22
|
|
|
21
23
|
RCT_EXTERN_METHOD(optOutTracking:(NSString *)token resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
@@ -59,6 +59,16 @@ open class MixpanelReactNative: NSObject {
|
|
|
59
59
|
resolve(nil)
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
@objc
|
|
63
|
+
func setFlushBatchSize(_ token: String,
|
|
64
|
+
flushBatchSize: Int,
|
|
65
|
+
resolver resolve: RCTPromiseResolveBlock,
|
|
66
|
+
rejecter reject: RCTPromiseRejectBlock) -> Void {
|
|
67
|
+
let instance = MixpanelReactNative.getMixpanelInstance(token)
|
|
68
|
+
instance?.flushBatchSize = flushBatchSize
|
|
69
|
+
resolve(nil)
|
|
70
|
+
}
|
|
71
|
+
|
|
62
72
|
@objc
|
|
63
73
|
func setUseIpAddressForGeolocation(_ token: String,
|
|
64
74
|
useIpAddressForGeolocation: Bool,
|