通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ChatCompositeLoaderProps interface

可在应用程序中使用的 ChatComposite 的 props。 包含 ChatCompositeChatCompositeOptions 的选项。

扩展

属性

chatCompositeOptions

useAzureCommunicationChatAdapter(Partial<AzureCommunicationChatAdapterArgs>, (adapter: ChatAdapter) => Promise<ChatAdapter>, (adapter: ChatAdapter) => Promise<void>) This is used to configure the chat 适配器的选项。

credential

CommunicationTokenCredential 的 CommunicationTokenCredential 进行分配。

displayName

本地用户的显示名称。

endpoint

通信服务端点。 这用于令牌和加入聊天线程。

threadId

通信 threadId 用于聊天线程。

userId

本地用户的 UserId。

继承属性

fluentTheme

复合的 Fluent 主题。

icons

复合的自定义图标替代。 可以提供 JSX 元素来替代默认图标。

locale

复合区域设置。

onFetchAvatarPersonaData

一个回调函数,可用于向在复合中呈现的虚拟形象提供自定义数据。

这不会影响复合中显示的 displayName。 整个复合中的 displayName 将是创建适配器时提供给适配器的内容。 将是在创建适配器时提供给适配器的内容。

onFetchParticipantMenuItems

一个回调函数,可用于为参与者列表中的参与者提供自定义菜单项。

rtl

复合是否从右向左显示。

属性详细信息

chatCompositeOptions

credential

CommunicationTokenCredential 的 CommunicationTokenCredential 进行分配。

credential: CommunicationTokenCredential

属性值

displayName

本地用户的显示名称。

displayName?: string

属性值

string

endpoint

通信服务端点。 这用于令牌和加入聊天线程。

endpoint: string

属性值

string

threadId

通信 threadId 用于聊天线程。

threadId: string

属性值

string

userId

本地用户的 UserId。

userId: CommunicationUserIdentifier

属性值

继承属性详细信息

fluentTheme

复合的 Fluent 主题。

fluentTheme?: PartialTheme | Theme

属性值

PartialTheme | Theme

继承自 Partial.fluentTheme

icons

复合的自定义图标替代。 可以提供 JSX 元素来替代默认图标。

icons?: ChatCompositeIcons

属性值

继承自 部分图标

locale

复合区域设置。

locale?: CompositeLocale

属性值

继承自 Partial.locale

onFetchAvatarPersonaData

一个回调函数,可用于向在复合中呈现的虚拟形象提供自定义数据。

这不会影响复合中显示的 displayName。 整个复合中的 displayName 将是创建适配器时提供给适配器的内容。 将是在创建适配器时提供给适配器的内容。

onFetchAvatarPersonaData?: AvatarPersonaDataCallback

属性值

继承自 Partial.onFetchAvatarPersonaData

onFetchParticipantMenuItems

一个回调函数,可用于为参与者列表中的参与者提供自定义菜单项。

onFetchParticipantMenuItems?: ParticipantMenuItemsCallback

属性值

继承自 Partial.onFetchParticipantMenuItems

rtl

复合是否从右向左显示。

rtl?: boolean

属性值

boolean

继承自 部分.rtl