Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

RtkParticipantTileView

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

参加者の動画を再生し、ネームタグやアバターなどのコンポーネントを配置できるコンポーネントです。

プロパティ

プロパティ 型 必須 デフォルト 説明
rtk_ptv_nameTagPosition BOTTOM_LEFT | TOP_CENTER ❌ BOTTOM_LEFT ネームタグの位置
cardBackgroundColor color ❌ - タイルの背景色
cardCornerRadius dimension ❌ - タイルの角丸半径

メソッド

メソッド パラメーター 説明
activate participant: RtkMeetingParticipant タイルを特定の参加者にバインドします
refreshParticipantName - ネームタグとアバターを更新します
refreshParticipantVideo - ビデオビューの状態を更新します
applyDesignTokens designTokens: RtkDesignTokens テーマ用のカスタムデザイントークンを適用します

使用例

基本的な使い方

<com.cloudflare.realtimekit.ui.view.participanttile.RtkParticipantTileView
    android:id="@+id/rtk_participant_tile"
    android:layout_width="match_parent"
    android:layout_height="200dp"
    app:rtk_ptv_nameTagPosition="BOTTOM_LEFT" />

メソッドを使う

val tile = findViewById<RtkParticipantTileView>(R.id.rtk_participant_tile)
tile.activate(participant)

役に立ちましたか?