Skip to content

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

RtkNotifications

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

ミーティングの通知(参加者の入退室、チャットメッセージ、投票、ネットワーク状態)を管理して表示するコンテナです。効果音も再生します。

プロパティ

プロパティ 必須 デフォルト 説明
meeting RealtimeKitClient - RealtimeKit のミーティングインスタンス
config UIConfig defaultConfig UI 設定オブジェクト
iconPack IconPack defaultIconPack カスタムアイコンパック
size 'lg' | 'md' | 'sm' | 'xl' 'sm' サイズのバリアント
states States - UI の States オブジェクト
t RtkI18n - i18n 翻訳関数

使用例

基本的な使い方

import {
	RtkNotifications,
	useLanguage,
} from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	const t = useLanguage();
	return (
		<RtkNotifications
			meeting={meeting}
			config={config}
			iconPack={iconPack}
			size="sm"
			states={states}
			t={t}
		/>
	);
}

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

import {
	RtkNotifications,
	defaultConfig,
	defaultIconPack,
	useLanguage,
} from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	const t = useLanguage();
	return (
		<RtkNotifications
			meeting={meeting}
			config={defaultConfig}
			iconPack={defaultIconPack}
			size="md"
			states={states}
			t={t}
		/>
	);
}

役に立ちましたか?