Changes for page React native integration
Last modified by Developer on 2020/01/03 12:47
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -96,7 +96,7 @@ 96 96 {{showhide id="3" showmessage="DataGatherPolicy options" hidemessage="DataGatherPolicy options"}} 97 97 (% class="table-bordered table-hover" style="border-color:powderblue" %) 98 98 |=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Default|=(% style="background-color:powderblue" %)Description 99 -| monitorState|String| | Possible monitor states: [[plugin constants>>doc :||anchor="H4.2Datagatherpolicyconstants"]]. More info about gathering data [[here>>https://wiki.spicymobile.pl/wiki/mobigatesdk/view/Main/mobigatesdkintegrationforandroiddevelopers/#H5.8Datagatherpolicy]]99 +| monitorState|String| | Possible monitor states: [[plugin constants>>https://wiki.spicymobile.pl/wiki/mobigatesdk/view/Main/sdkintegration/reactnativeintegration/#H4.2Datagatherpolicyconstants]]. More info about gathering data [[here>>https://wiki.spicymobile.pl/wiki/mobigatesdk/view/Main/mobigatesdkintegrationforandroiddevelopers/#H5.8Datagatherpolicy]] 100 100 |notificationText|String| | if state = Mobigate.DATA_GATHER_POLICY_DEFAULT you can pass custom foreground service notification text 101 101 {{/showhide}} 102 102 ... ... @@ -474,10 +474,23 @@ 474 474 475 475 == 3.3 Remaining methods == 476 476 477 +**Mobigate.setCollectAll()** 478 +This method enables all data collectors. By default all data collectors are enabled. 477 477 480 +(% style="color:powderblue" %) 481 +---- 478 478 483 +**Mobigate.configureDataCollectors(enable, collectors)** 484 +Enable or disable DataCollector by array collectors input 479 479 486 +(% class="table-bordered table-hover" style="border-color:powderblue" %) 487 +|=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Default|=(% style="background-color:powderblue" %)Description 488 +|enable|boolean|true if enable, false if disable| 489 +|collectors|int[]/[[data collector const>>doc:||anchor="H4.3Datacollectorsconstants"]]|true if enable, false if disable| 480 480 491 +(% style="color:powderblue" %) 492 +---- 493 + 481 481 (% class="table-bordered table-hover" style="border-color:powderblue" %) 482 482 |=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Default|=(% style="background-color:powderblue" %)Description 483 483 | | | | ... ... @@ -503,6 +503,42 @@ 503 503 * Mobigate.DATA_GATHER_POLICY_HIDE_TRAY 504 504 * Mobigate.DATA_GATHER_POLICY_BLOCK_DATA_BG 505 505 519 +== 4.3 Data collectors constants == 520 + 521 +Used to set which data the library should collect: 522 + 523 +* Mobigate.DATA_COLLECTOR_APPS_LIST 524 +* Mobigate.DATA_COLLECTOR_APPS_USAGE 525 +* Mobigate.DATA_COLLECTOR_BATTERY 526 +* Mobigate.DATA_COLLECTOR_BROWSER 527 +* Mobigate.DATA_COLLECTOR_CALENDAR_EVENTS 528 +* Mobigate.DATA_COLLECTOR_CPU_PROCESS 529 +* Mobigate.DATA_COLLECTOR_DICTIONARY 530 +* Mobigate.DATA_COLLECTOR_GEOLOCATION 531 +* Mobigate.DATA_COLLECTOR_HEADSET_PLUG 532 +* Mobigate.DATA_COLLECTOR_MEDIA_FILES 533 +* Mobigate.DATA_COLLECTOR_MEMORY_USEAGE 534 +* Mobigate.DATA_COLLECTOR_NETWORK_CONNECTION 535 +* Mobigate.DATA_COLLECTOR_NETWORK_USEAGE 536 +* Mobigate.DATA_COLLECTOR_PACKAGE_CHANGE 537 +* Mobigate.DATA_COLLECTOR_PHONE_INFO 538 +* Mobigate.DATA_COLLECTOR_ROAMING 539 +* Mobigate.DATA_COLLECTOR_SCREEN_ORIENTED 540 +* Mobigate.DATA_COLLECTOR_SIGNAL_STRENGTH 541 +* Mobigate.DATA_COLLECTOR_PROFILE_MODE 542 +* Mobigate.DATA_COLLECTOR_WIFI_DATA_CONNECTION 543 +* Mobigate.DATA_COLLECTOR_PERMISSION_COLLECTOR 544 +* Mobigate.DATA_COLLECTOR_NFC_COLLECTOR 545 +* Mobigate.DATA_COLLECTOR_BLUETOOTH_COLLECTOR 546 +* Mobigate.DATA_COLLECTOR_BLUETOOTH_DEVICES_COLLECTOR 547 +* Mobigate.DATA_COLLECTOR_MOVEMENT_COLLECTOR 548 +* Mobigate.DATA_COLLECTOR_FACEBOOK_NETWORK_COLLECTOR 549 +* Mobigate.DATA_COLLECTOR_ROOT_COLLECTOR 550 + 551 +== 4.4 Category and parameter constants == 552 + 553 +Instead of using defined [[categories>>doc:||anchor="H3.2.3Eventcategories"]] or [[parameters>>doc:||anchor="H3.2.4Eventparameters"]] in the form of text, you can use constants defined in the plugin. All you have to do is add the prefix "CATEGORY_" or "PARAMETER_" to the category name or parameter e.g., Mobigate.CATEGORY_LEVEL_ACCOMPLISHED, Mobigate.CATEGORY_PURCHASE, Mobigate.PARAMETER_PRICE, Mobigate.PARAMETER_LEVEL. 554 + 506 506 = 5. Sample app = 507 507 508 508 The sample application is located in the github repository [[here>>https://github.com/mobigatesdk/react-native-mobigate]] in //example// folder.