From version < 24.1 >
edited by Developer
on 2020/01/03 10:40
To version < 28.2 >
edited by Developer
on 2020/01/03 12:12
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -474,14 +474,47 @@
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 +{{showhide id="3" showmessage="Example" hidemessage="Example"}}
481 +{{code language="javascript"}}
482 +Mobigate.disableAllDataCollector()
483 +{{/code}}
484 +{{/showhide}}
478 478  
486 +(% style="color:powderblue" %)
487 +----
479 479  
489 +**Mobigate.configureDataCollectors(enable, collectors)**
490 +Enable or disable DataCollector by array collectors input
480 480  
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
494 +|enable|boolean|true if enable, false if disable|
495 +|collectors|array of[[data collector const>>doc:||anchor="H4.3Datacollectorsconstants"]]|e.g.,[Mobigate.DATA_COLLECTOR_BATTERY, DATA_COLLECTOR_GEOLOCATION]|
496 +
497 +{{showhide id="3" showmessage="Example" hidemessage="Example"}}
498 +{{code language="javascript"}}
499 +Mobigate.configureDataCollectors(true, [Mobigate.DATA_COLLECTOR_APPS_LIST,
500 + Mobigate.DATA_COLLECTOR_BATTERY,
501 + Mobigate.DATA_COLLECTOR_PHONE_INFO])
502 +{{/code}}
503 +{{/showhide}}
504 +
505 +(% style="color:powderblue" %)
506 +----
507 +
508 +(% class="table-bordered table-hover" style="border-color:powderblue" %)
509 +|=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Default|=(% style="background-color:powderblue" %)Description
483 483  | | | |
484 484  
512 +{{showhide id="3" showmessage="Example" hidemessage="Example"}}
513 +{{code language="javascript"}}
514 +
515 +{{/code}}
516 +{{/showhide}}
517 +
485 485  = 4. Constants =
486 486  
487 487  The plugin provides many helpful constants for easier implementation.
... ... @@ -503,6 +503,42 @@
503 503  * Mobigate.DATA_GATHER_POLICY_HIDE_TRAY
504 504  * Mobigate.DATA_GATHER_POLICY_BLOCK_DATA_BG
505 505  
539 +== 4.3 Data collectors constants ==
540 +
541 +Used to set which data the library should collect:
542 +
543 +* Mobigate.DATA_COLLECTOR_APPS_LIST
544 +* Mobigate.DATA_COLLECTOR_APPS_USAGE
545 +* Mobigate.DATA_COLLECTOR_BATTERY
546 +* Mobigate.DATA_COLLECTOR_BROWSER
547 +* Mobigate.DATA_COLLECTOR_CALENDAR_EVENTS
548 +* Mobigate.DATA_COLLECTOR_CPU_PROCESS
549 +* Mobigate.DATA_COLLECTOR_DICTIONARY
550 +* Mobigate.DATA_COLLECTOR_GEOLOCATION
551 +* Mobigate.DATA_COLLECTOR_HEADSET_PLUG
552 +* Mobigate.DATA_COLLECTOR_MEDIA_FILES
553 +* Mobigate.DATA_COLLECTOR_MEMORY_USEAGE
554 +* Mobigate.DATA_COLLECTOR_NETWORK_CONNECTION
555 +* Mobigate.DATA_COLLECTOR_NETWORK_USEAGE
556 +* Mobigate.DATA_COLLECTOR_PACKAGE_CHANGE
557 +* Mobigate.DATA_COLLECTOR_PHONE_INFO
558 +* Mobigate.DATA_COLLECTOR_ROAMING
559 +* Mobigate.DATA_COLLECTOR_SCREEN_ORIENTED
560 +* Mobigate.DATA_COLLECTOR_SIGNAL_STRENGTH
561 +* Mobigate.DATA_COLLECTOR_PROFILE_MODE
562 +* Mobigate.DATA_COLLECTOR_WIFI_DATA_CONNECTION
563 +* Mobigate.DATA_COLLECTOR_PERMISSION_COLLECTOR
564 +* Mobigate.DATA_COLLECTOR_NFC_COLLECTOR
565 +* Mobigate.DATA_COLLECTOR_BLUETOOTH_COLLECTOR
566 +* Mobigate.DATA_COLLECTOR_BLUETOOTH_DEVICES_COLLECTOR
567 +* Mobigate.DATA_COLLECTOR_MOVEMENT_COLLECTOR
568 +* Mobigate.DATA_COLLECTOR_FACEBOOK_NETWORK_COLLECTOR
569 +* Mobigate.DATA_COLLECTOR_ROOT_COLLECTOR
570 +
571 +== 4.4 Category and parameter constants ==
572 +
573 +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.
574 +
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.
Spicy Mobile
spicymobile.pl