Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

RtkErrorView

最終更新 Markdown で表示Agent セットアップ

エラーメッセージと再試行ボタンを表示する、全画面のエラービューです。

メソッド

メソッド パラメーター 説明
refresh errorMessage: String, onRetryClicked: () -> Unit エラーメッセージと再試行ボタンのコールバックを設定します

使用例

基本的な使い方

<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
}

役に立ちましたか?