ChatCompositeLoaderProps interface
可在應用程式中使用的 ChatComposite 的 props。 包含 ChatCompositeChatCompositeOptions 的選項。
- Extends
-
Partial<BaseCompositeProps<ChatCompositeIcons>>
屬性
| chat |
useAzureCommunicationChatAdapter(Partial<AzureCommunicationChatAdapterArgs>, (adapter: ChatAdapter) => Promise<ChatAdapter>, (adapter: ChatAdapter) => Promise<void>) This is used to configure the chat 適配器的選項。 |
| credential | CommunicationTokenCredential 的 CommunicationTokenCredential 進行分配。 |
| display |
本地用戶的顯示名稱。 |
| endpoint | 通訊服務端點。 這用於令牌和加入聊天線程。 |
| thread |
通信 threadId 用於聊天線程。 |
| user |
本地使用者的UserId。 |
繼承的屬性
| fluent |
複合的 Fluent 主題。 |
| icons | 複合的自定義圖示覆寫。 您可以提供 JSX 元素來覆寫預設圖示。 |
| locale | 複合的地區設定。 |
| on |
回呼函式,可用來將自定義數據提供給在複合中轉譯的虛擬人偶。 這不會影響複合中顯示的 displayName。 整個複合的 displayName 將會在建立配接器時提供給配接器。 將會是建立配接器時提供給配接器的內容。 |
| on |
回呼函式,可用來為參與者清單中的參與者提供自定義功能表項。 |
| rtl | 複合是否由右至左顯示。 |
屬性詳細資料
chatCompositeOptions
useAzureCommunicationChatAdapter(Partial<AzureCommunicationChatAdapterArgs>, (adapter: ChatAdapter) => Promise<ChatAdapter>, (adapter: ChatAdapter) => Promise<void>) This is used to configure the chat 適配器的選項。
chatCompositeOptions?: ChatCompositeOptions
屬性值
credential
CommunicationTokenCredential 的 CommunicationTokenCredential 進行分配。
credential: CommunicationTokenCredential
屬性值
displayName
本地用戶的顯示名稱。
displayName?: string
屬性值
string
endpoint
通訊服務端點。 這用於令牌和加入聊天線程。
endpoint: string
屬性值
string
threadId
通信 threadId 用於聊天線程。
threadId: string
屬性值
string
userId
繼承的屬性詳細資料
fluentTheme
複合的 Fluent 主題。
fluentTheme?: PartialTheme | Theme
屬性值
PartialTheme | Theme
繼承自 Partial.fluentTheme
icons
locale
onFetchAvatarPersonaData
回呼函式,可用來將自定義數據提供給在複合中轉譯的虛擬人偶。
這不會影響複合中顯示的 displayName。 整個複合的 displayName 將會在建立配接器時提供給配接器。 將會是建立配接器時提供給配接器的內容。
onFetchAvatarPersonaData?: AvatarPersonaDataCallback
屬性值
繼承自 Partial.onFetchAvatarPersonaData
onFetchParticipantMenuItems
回呼函式,可用來為參與者清單中的參與者提供自定義功能表項。
onFetchParticipantMenuItems?: ParticipantMenuItemsCallback
屬性值
繼承自 Partial.onFetchParticipantMenuItems
rtl
複合是否由右至左顯示。
rtl?: boolean
屬性值
boolean
繼承自 部分.rtl