Coverage Summary for Class: InAppMessageViewDisplayer (cloud.mindbox.mobile_sdk.inapp.presentation)
| Class |
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
| InAppMessageViewDisplayer$DefaultImpls |
100%
(2/2)
|
|
100%
(5/5)
|
100%
(12/12)
|
| InAppMessageViewDisplayer$showInAppMessageNow$1 |
100%
(1/1)
|
|
100%
(1/1)
|
100%
(1/1)
|
| InAppMessageViewDisplayer$tryShowInAppMessage$1 |
0%
(0/1)
|
|
0%
(0/1)
|
0%
(0/1)
|
| Total |
75%
(3/4)
|
|
85.7%
(6/7)
|
92.9%
(13/14)
|
package cloud.mindbox.mobile_sdk.inapp.presentation
import android.app.Activity
import cloud.mindbox.mobile_sdk.inapp.domain.interfaces.InAppActionCallbacks
import cloud.mindbox.mobile_sdk.inapp.domain.models.InAppType
import com.google.gson.JsonElement
internal interface InAppMessageViewDisplayer {
fun onResumeCurrentActivity(activity: Activity, isNeedToShow: () -> Boolean, onAppResumed: () -> Unit)
fun onPauseCurrentActivity(activity: Activity)
fun onStopCurrentActivity(activity: Activity)
fun tryShowInAppMessage(
inAppType: InAppType,
inAppActionCallbacks: InAppActionCallbacks,
onRenderStart: () -> Unit = {},
tags: Map<String, String>? = null,
)
fun showInAppMessageNow(
inAppType: InAppType,
inAppActionCallbacks: InAppActionCallbacks,
onRenderStart: () -> Unit = {},
tags: Map<String, String>? = null,
extraParams: Map<String, JsonElement> = emptyMap(),
)
fun registerCurrentActivity(activity: Activity)
fun registerInAppCallback(inAppCallback: InAppCallback)
fun unregisterInAppCallback()
fun isInAppActive(): Boolean
fun dismissCurrentInApp()
}