Batch Messaging View
Class representing a Batch Messaging view.
This is used to manually handle display of Mobile Landings and In-App Messages.
BatchMessagingView should be instantiated from the static factory methods: loadMessagingView.
Then you will have to call showView or showFragment according to the kind.
Note that: this methods should be called from the UI thread.
Example:
val messagingView = Batch.Messaging.loadMessagingView(this, message)
when (messagingView.kind) {
BatchMessagingView.Kind.Fragment -> messagingView.showFragment(supportFragmentManager, "batch-landing")
BatchMessagingView.Kind.View -> messagingView.showView(this)
}
Content copied to clipboard