RtkErrorView
A full-screen error view that displays an error message and a retry button.
| Method | Parameters | Description |
|---|---|---|
refresh | errorMessage: String, onRetryClicked: () -> Unit | Set the error message and retry button callback |
<com.cloudflare.realtimekit.ui.view.RtkErrorView android:id="@+id/rtk_error_view" android:layout_width="match_parent" android:layout_height="match_parent" />val errorView = findViewById<RtkErrorView>(R.id.rtk_error_view)errorView.refresh("Failed to connect") { // Retry connection}