abstract fun shouldShowMessage(@NonNull message: InAppMessage): Boolean
This method will be called before a in app message is presented. You can return false
to prevent the message from being displayed. You can later use InAppMessageManager#showMessage(String)
to display the message if the message is still on the device and active.
message
- InAppMessage: The InAppMessage
that will be displayed
Return
Boolean: Return true
to present the message. false
will prevent the message from being displayed.