Skip to content

RtkErrorView

Last updated View as MarkdownAgent setup

A full-screen error view that displays an error message and a retry button.

Methods

Method Parameters Description
refresh errorMessage: String, onRetryClicked: () -> Unit Set the error message and retry button callback

Usage Examples

Basic Usage

<com.cloudflare.realtimekit.ui.view.RtkErrorView
    android:id="@+id/rtk_error_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

With Methods

val errorView = findViewById<RtkErrorView>(R.id.rtk_error_view)
errorView.refresh("Failed to connect") {
    // Retry connection
}

Was this helpful?