From version < 11.1 >
edited by Developer
on 2020/03/19 14:51
To version < 19.1
edited by Developer
on 2020/03/19 15:21
<
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -316,7 +316,7 @@
316 316  **Recommended parameters:** CONTENT_ID
317 317  {{/showhide}}
318 318  
319 -=== 3.2.4 Event parameters ===
319 +=== 3.3.4 Event parameters ===
320 320  
321 321  In addition each category that is passed with event may have optional parameters defined as part of the plugin constants, or custom defined as String. Below is a list of recommended parameters.
322 322  
... ... @@ -398,14 +398,14 @@
398 398  
399 399  {{/showhide}}
400 400  
401 -== 3.3 Remaining methods ==
401 +== 3.4 Remaining methods ==
402 402  
403 -**Mobigate.setCollectAll()**
403 +**void setCollectAll()**
404 404  This method enables all data collectors. By default all data collectors are enabled.
405 405  
406 406  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
407 -{{code language="javascript"}}
408 -Mobigate.disableAllDataCollector()
407 +{{code language="dart"}}
408 +mobigateInstance.setCollectAll();
409 409  {{/code}}
410 410  {{/showhide}}
411 411  
... ... @@ -412,19 +412,21 @@
412 412  (% style="color:powderblue" %)
413 413  ----
414 414  
415 -**Mobigate.configureDataCollectors(enable, collectors)**
415 +**void configureDataCollectors(bool enable, List<int> collectors)**
416 416  Enable or disable DataCollector by array collectors input
417 417  
418 418  (% class="table-bordered table-hover" style="border-color:powderblue" %)
419 419  |=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
420 -|enable|boolean|true if enable, false if disable|
421 -|collectors|array of [[data collector const>>doc:||anchor="H4.3Datacollectorsconstants"]]|e.g.,[Mobigate.DATA_COLLECTOR_BATTERY, DATA_COLLECTOR_GEOLOCATION]|
420 +|enable|boolean|true if enable, false if disable
421 +|collectors|array of [[data collector const>>doc:||anchor="H4.3Datacollectorsconstants"]]|e.g.,[Mobigate.DATA_COLLECTOR_BATTERY, DATA_COLLECTOR_GEOLOCATION]
422 422  
423 423  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
424 -{{code language="javascript"}}
425 -Mobigate.configureDataCollectors(true, [Mobigate.DATA_COLLECTOR_APPS_LIST,
426 - Mobigate.DATA_COLLECTOR_BATTERY,
427 - Mobigate.DATA_COLLECTOR_PHONE_INFO])
424 +{{code language="dart"}}
425 +mobigateInstance.configureDataCollectors(true, [
426 + DataCollector.APPS_LIST,
427 + DataCollector.APPS_USAGE,
428 + DataCollector.BROWSER
429 + ]);
428 428  {{/code}}
429 429  {{/showhide}}
430 430  
... ... @@ -431,12 +431,12 @@
431 431  (% style="color:powderblue" %)
432 432  ----
433 433  
434 -**Mobigate.disableAllDataCollector()**
436 +**void disableAllDataCollector()**
435 435  Disable all data collectors
436 436  
437 437  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
438 -{{code language="javascript"}}
439 -Mobigate.disableAllDataCollector()
440 +{{code language="dart"}}
441 +mobigateInstance.disableAllDataCollector();
440 440  {{/code}}
441 441  {{/showhide}}
442 442  
... ... @@ -443,16 +443,16 @@
443 443  (% style="color:powderblue" %)
444 444  ----
445 445  
446 -**Mobigate.setEmail(email)**
448 +**void setEmail(String email)**
447 447  Set user's email
448 448  
449 449  (% class="table-bordered table-hover" style="border-color:powderblue" %)
450 450  |=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
451 -|email |String |user's email address |
453 +|email |String |user's email address
452 452  
453 453  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
454 -{{code language="javascript"}}
455 -Mobigate.setEmail('emailExample@spicymobile.pl')
456 +{{code language="dart"}}
457 +mobigateInstance.setEmail('test@spicymobile.pl');
456 456  {{/code}}
457 457  {{/showhide}}
458 458  
... ... @@ -459,21 +459,12 @@
459 459  (% style="color:powderblue" %)
460 460  ----
461 461  
462 -**Mobigate.getEmail(onSuccess, onError)**
463 -Get previously set user email
464 +**Future<String> getEmail()**
465 +Get previously set user email. Return email on success, error otherwise.
464 464  
465 -(% class="table-bordered table-hover" style="border-color:powderblue" %)
466 -|=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
467 -|onSuccess |Function |returns callback object
468 -|onError |Function |returns callback object
469 -
470 470  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
471 -{{code language="javascript"}}
472 -Mobigate.getEmail((success) => {
473 - console.log("user email: " + success)
474 - }, (error) => {
475 - console.log(error)
476 - })
468 +{{code language="dart"}}
469 +final String email = await mobigateInstance.getEmail();
477 477  {{/code}}
478 478  {{/showhide}}
479 479  
... ... @@ -480,7 +480,7 @@
480 480  (% style="color:powderblue" %)
481 481  ----
482 482  
483 -**Mobigate.setFbToken(token)**
476 +**void setFbToken(String token)**
484 484  Set fb token for social network collector
485 485  
486 486  (% class="table-bordered table-hover" style="border-color:powderblue" %)
... ... @@ -488,49 +488,20 @@
488 488  |token |string |facebook token
489 489  
490 490  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
491 -{{code language="javascript"}}
492 -Mobigate.setFbToken('9dsf87ds98978das98d7893u12rj808d0j09012jd012')
484 +{{code language="dart"}}
485 +mobigateInstance.setFbToken('dsf87esy789fys9dfu08sds54s6547c8s8doc4');
493 493  {{/code}}
494 494  {{/showhide}}
495 495  
496 -(((
497 -(% class="showhidebutton" %)
498 -(((
499 -{{html clean="false"}}
500 -<a href="javascript:void(0)" id="showhidebuttontext3" data-show-duration="0" data-show-effect="toggle" data-show-message="Example" data-hide-message="Example">Example</a>
501 -{{/html}}
502 -)))
503 -
504 -(% class="showhidecontent" id="showhidecontent3" style="display: none;" %)
505 -(((
506 -(((
507 -{{code language="javascript"}}
508 -Mobigate.setFbToken('9dsf87ds98978das98d7893u12rj808d0j09012jd012')
509 -{{/code}}
510 -)))
511 -)))
512 -)))
513 -
514 -
515 -
516 516  (% style="color:powderblue" %)
517 517  ----
518 518  
519 -**Mobigate.getSDKInfo(onSuccess, onError)**
520 -Getting information about the library
492 +**Future<String> getSDKInfo()**
493 +Getting information about the library. Return on success sdk info string, error otherwise.
521 521  
522 -(% class="table-bordered table-hover" style="border-color:powderblue" %)
523 -|=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
524 -|onSuccess |Function |returns callback object
525 -|onError |Function |returns callback object
526 -
527 527  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
528 -{{code language="javascript"}}
529 -Mobigate.getSDKInfo((success) => {
530 - console.log("sdk info: " + success)
531 - }, (error) => {
532 - console.log(error)
533 - })
496 +{{code language="dart"}}
497 +final String sdkInfo = await mobigateInstance.getSDKInfo();
534 534  {{/code}}
535 535  {{/showhide}}
536 536  
... ... @@ -537,21 +537,12 @@
537 537  (% style="color:powderblue" %)
538 538  ----
539 539  
540 -**Mobigate.getSDKUniqueIdentifier(onSuccess, onError)**
541 -Return unique SDK identificator
504 +**Future<String> getSDKUniqueIdentifier()**
505 +Return unique SDK identificator. Return on success sdk unique identifier, error otherwise.
542 542  
543 -(% class="table-bordered table-hover" style="border-color:powderblue" %)
544 -|=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
545 -|onSuccess |Function |returns callback object
546 -|onError |Function |returns callback object
547 -
548 548  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
549 -{{code language="javascript"}}
550 -Mobigate.getSDKUniqueIdentifier((success) => {
551 - console.log("UUID: " + success)
552 - }, (error) => {
553 - console.log(error)
554 - })
508 +{{code language="dart"}}
509 +final String sdkUniqueIdentifier = await mobigateInstance.getSDKUniqueIdentifier();
555 555  {{/code}}
556 556  {{/showhide}}
557 557  
... ... @@ -558,22 +558,12 @@
558 558  (% style="color:powderblue" %)
559 559  ----
560 560  
561 -**Mobigate.getIDsProfiles(onSuccess, onError)**
516 +**Future<List<int>> getIDsProfiles()**
562 562  Method returns IDs profiles. List of IDs profiles in the application memory is updated (synchronized with the server) at specified intervals. To enable functionality, use the 'enableIDsProfiles (boolean enable)' method. Returns the identifiers of IDs profiles (ex. 5,9,20), returns '0' if list of user IDs profiles is empty, returns 'null' if the system has not yet communicated
563 563  
564 -
565 -(% class="table-bordered table-hover" style="border-color:powderblue" %)
566 -|=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
567 -|onSuccess |Function |returns callback object
568 -|onError |Function |returns callback object
569 -
570 570  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
571 -{{code language="javascript"}}
572 -Mobigate.getIDsProfiles((success) => {
573 - console.log("Profiles: " + success)
574 - }, (error) => {
575 - console.log(error)
576 - })
520 +{{code language="dart"}}
521 +final List<int> idsProfiles = await mobigateInstance.getIDsProfiles();
577 577  {{/code}}
578 578  {{/showhide}}
579 579  
... ... @@ -580,21 +580,12 @@
580 580  (% style="color:powderblue" %)
581 581  ----
582 582  
583 -**Mobigate.getAdOceanTargeting(onSuccess, onError)**
528 +**Future<Map<String, int>> getAdOceanTargeting()**
584 584  Getting numerical variables, that can be used for ads targeting. Method must be called from separate thread. Return 3 different identifiers of a user, encoded into a map of AdOcean numerical variables
585 585  
586 -(% class="table-bordered table-hover" style="border-color:powderblue" %)
587 -|=(% style="background-color:powderblue" %)Name|=(% style="background-color:powderblue" %)Type|=(% style="background-color:powderblue" %)Description
588 -|onSuccess |Function |returns callback object
589 -|onError |Function |returns callback object
590 -
591 591  {{showhide id="3" showmessage="Example" hidemessage="Example"}}
592 -{{code language="javascript"}}
593 -Mobigate.getAdOceanTargeting((success) => {
594 - console.log("Adocean targeting: " + success)
595 - }, (error) => {
596 - console.log(error)
597 - })
532 +{{code language="dart"}}
533 +final Map<String,int> adOceanTargeting = await mobigateInstance.getAdOceanTargeting();
598 598  {{/code}}
599 599  {{/showhide}}
600 600  
... ... @@ -606,55 +606,55 @@
606 606  
607 607  Used to set custom user fields inside //Mobigate.init()// method:
608 608  
609 -* Mobigate.USER_FIELD_EMAIL
610 -* Mobigate.USER_FIELD_IMSI
611 -* Mobigate.USER_FIELD_IMEI
612 -* Mobigate.USER_FIELD_SERIAL
545 +* UserField.USER_FIELD_EMAIL
546 +* UserField.USER_FIELD_IMSI
547 +* UserField.USER_FIELD_IMEI
548 +* UserField.USER_FIELD_SERIAL
613 613  
614 614  == 4.2 Data gather policy constants ==
615 615  
616 616  Used to set how the library collects data:
617 617  
618 -* Mobigate.DATA_GATHER_POLICY_DEFAULT
619 -* Mobigate.DATA_GATHER_POLICY_HIDE_TRAY
620 -* Mobigate.DATA_GATHER_POLICY_BLOCK_DATA_BG
554 +* MonitorState.DATA_GATHER_POLICY_DEFAULT
555 +* MonitorState.DATA_GATHER_POLICY_HIDE_TRAY
556 +* MonitorState.DATA_GATHER_POLICY_BLOCK_DATA_BG
621 621  
622 622  == 4.3 Data collectors constants ==
623 623  
624 624  Used to set which data the library should collect:
625 625  
626 -* Mobigate.DATA_COLLECTOR_APPS_LIST
627 -* Mobigate.DATA_COLLECTOR_APPS_USAGE
628 -* Mobigate.DATA_COLLECTOR_BATTERY
629 -* Mobigate.DATA_COLLECTOR_BROWSER
630 -* Mobigate.DATA_COLLECTOR_CALENDAR_EVENTS
631 -* Mobigate.DATA_COLLECTOR_CPU_PROCESS
632 -* Mobigate.DATA_COLLECTOR_DICTIONARY
633 -* Mobigate.DATA_COLLECTOR_GEOLOCATION
634 -* Mobigate.DATA_COLLECTOR_HEADSET_PLUG
635 -* Mobigate.DATA_COLLECTOR_MEDIA_FILES
636 -* Mobigate.DATA_COLLECTOR_MEMORY_USEAGE
637 -* Mobigate.DATA_COLLECTOR_NETWORK_CONNECTION
638 -* Mobigate.DATA_COLLECTOR_NETWORK_USEAGE
639 -* Mobigate.DATA_COLLECTOR_PACKAGE_CHANGE
640 -* Mobigate.DATA_COLLECTOR_PHONE_INFO
641 -* Mobigate.DATA_COLLECTOR_ROAMING
642 -* Mobigate.DATA_COLLECTOR_SCREEN_ORIENTED
643 -* Mobigate.DATA_COLLECTOR_SIGNAL_STRENGTH
644 -* Mobigate.DATA_COLLECTOR_PROFILE_MODE
645 -* Mobigate.DATA_COLLECTOR_WIFI_DATA_CONNECTION
646 -* Mobigate.DATA_COLLECTOR_PERMISSION_COLLECTOR
647 -* Mobigate.DATA_COLLECTOR_NFC_COLLECTOR
648 -* Mobigate.DATA_COLLECTOR_BLUETOOTH_COLLECTOR
649 -* Mobigate.DATA_COLLECTOR_BLUETOOTH_DEVICES_COLLECTOR
650 -* Mobigate.DATA_COLLECTOR_MOVEMENT_COLLECTOR
651 -* Mobigate.DATA_COLLECTOR_FACEBOOK_NETWORK_COLLECTOR
652 -* Mobigate.DATA_COLLECTOR_ROOT_COLLECTOR
562 +* DataCollector.APPS_LIST
563 +* DataCollector.DATA_COLLECTOR_APPS_USAGE
564 +* DataCollector.BATTERY
565 +* DataCollector.BROWSER
566 +* DataCollector.CALENDAR_EVENTS
567 +* DataCollector.CPU_PROCESS
568 +* DataCollector.DICTIONARY
569 +* DataCollector.GEOLOCATION
570 +* DataCollector.HEADSET_PLUG
571 +* DataCollector.MEDIA_FILES
572 +* DataCollector.MEMORY_USEAGE
573 +* DataCollector.NETWORK_CONNECTION
574 +* DataCollector.NETWORK_USEAGE
575 +* DataCollector.PACKAGE_CHANGE
576 +* DataCollector.PHONE_INFO
577 +* DataCollector.ROAMING
578 +* DataCollector.SCREEN_ORIENTED
579 +* DataCollector.SIGNAL_STRENGTH
580 +* DataCollector.PROFILE_MODE
581 +* DataCollector.WIFI_DATA_CONNECTION
582 +* DataCollector.PERMISSION_COLLECTOR
583 +* DataCollector.NFC_COLLECTOR
584 +* DataCollector.BLUETOOTH_COLLECTOR
585 +* DataCollector.BLUETOOTH_DEVICES_COLLECTOR
586 +* DataCollector.MOVEMENT_COLLECTOR
587 +* DataCollector.FACEBOOK_NETWORK_COLLECTOR
588 +* DataCollector.ROOT_COLLECTOR
653 653  
654 654  == 4.4 Category and parameter constants ==
655 655  
656 -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.
592 +Instead of using defined [[categories>>doc:||anchor="H3.3.3Eventcategories"]] or [[parameters>>doc:||anchor="H3.3.4Eventparameters"]] in the form of text, you can use constants defined in the plugin. All you have to do is use EventCategory or EventParameter class e.g., EventCategory.LEVEL_ACCOMPLISHED, EventCategory.PURCHASE, EventParameter.PRICE, EventParameter.LEVEL.
657 657  
658 658  = 5. Sample app =
659 659  
660 -The sample application is located in the github repository [[here>>https://github.com/mobigatesdk/react-native-mobigate]] in //example// folder.
596 +The sample application is located in the github repository [[here>>https://github.com/mobigatesdk/flutter_mobigate]] in //example// folder.
Spicy Mobile
spicymobile.pl