Skip to content

RtkErrorView

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

Methods

MethodParametersDescription
refresherrorMessage: String, onRetryClicked: () -> UnitSet 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

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