onKeyDown

open override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean

If the back button is pressed while this WebView is in focus, close the current in-app message.

Note: When this WebView doesn't have focus, back button events on html in-app messages are captured by InAppMessageHtmlFullView.onKeyDown

Return

If the button pressed was the back button, close the in-app message and return true to indicate that the event was handled.