Initialization
To initialize automation you need to insert MBAutomation as a MBurger plugins, tipically automation is used in conjunction with the MBMessages and MBAudience plugins.
1
val plugins = ArrayList<MBPlugin>()
2
val pluginAutomation = MBAutomation()
3
val pluginAudience = MBAudience()
4
val pluginMessages = MBMessages()
5
plugins.add(pluginAutomation)
6
plugins.add(pluginAudience)
7
plugins.add(pluginMessages)
8
​
9
MBurger.initialize(applicationContext, "MBURGER_KEY", false, plugins)
Copied!
Once you've done this ask MBurger to start plugins in your main activity (be aware that it has to be an AppCompatActivity).
1
MBurger.startPlugins(activity)
Copied!
Last modified 1yr ago
Copy link