Skip to content

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

RtkParticipantTile

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

1 人の参加者向けのビデオタイルです。映像、音声インジケーター付きのネームタグ、アバター(映像オフ時)、ピン留めインジケーターを表示します。

プロパティ

プロパティ 必須 デフォルト 説明
meeting RealtimeKitClient - RealtimeKit の Meeting インスタンス
participant RTKParticipant | RTKSelf - 描画する参加者
config UIConfig defaultConfig UI 設定オブジェクト
style StyleProp<any> - カスタムスタイル(通常はグリッドサイズ用の width/height)
nameTagPosition 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-left' | 'top-right' | 'none' 'bottom-left' ネームタグオーバーレイの位置
isPreview boolean false プレビュータイル(セットアップ画面)かどうか
iconPack IconPack defaultIconPack カスタムアイコンパック
size 'lg' | 'md' | 'sm' | 'xl' 'sm' サイズのバリアント
states States - UI の States オブジェクト
t RtkI18n - i18n の翻訳関数
children ReactNode - タイル上に重ねる追加コンテンツ

使用例

基本的な使い方

import { RtkParticipantTile } from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	return <RtkParticipantTile meeting={meeting} participant={participant} />;
}

プロパティを指定する場合

import { RtkParticipantTile } from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	return (
		<RtkParticipantTile
			meeting={meeting}
			participant={participant}
			nameTagPosition="bottom-left"
			isPreview={false}
			size="md"
		/>
	);
}

役に立ちましたか?