Bug Reporting Callbacks
Bug reporting flows and callbacks in KMP (onInvoke, onDismiss, onPromptOptionSelected).
Before the UI is shown
scope.launch {
BugReportingKmp.onInvoke.collect {
// e.g. pause game, track analytics
}
}When the UI is dismissed
scope.launch {
BugReportingKmp.onDismiss.collect { (dismissType, reportType) ->
when (dismissType) {
DismissType.Submit -> { /* user submitted */ }
DismissType.Cancel -> { /* user cancelled */ }
DismissType.AddAttachment -> { /* user is adding attachment */ }
}
}
}Prompt option selected (iOS)
Before report is submitted
Last updated