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.

val plugins = ArrayList<MBPlugin>()
val pluginAutomation = MBAutomation()
val pluginAudience = MBAudience()
val pluginMessages = MBMessages()
plugins.add(pluginAutomation)
plugins.add(pluginAudience)
plugins.add(pluginMessages)

MBurger.initialize(applicationContext, "MBURGER_KEY", false, plugins)

Once you've done this ask MBurger to start plugins in your main activity (be aware that it has to be an AppCompatActivity).

MBurger.startPlugins(activity)

Last updated