IncomingCallNotificationProps interface
来电通知组件的属性。
属性
| accept |
是否显示 accept with video 按钮的选项 |
| alert |
警报文本” |
| avatar |
用户的头像图像的 URL |
| caller |
来电者姓名 |
| on |
带音频接听电话的回调 |
| on |
通过 Video 接听电话的回调 |
| on |
通知关闭时的回调 |
| on |
拒绝通话的回调 |
| on |
渲染头像的回调 |
| persona |
persona 硬币的大小 |
| strings | 来电通知组件的字符串。 |
| styles | 来电通知组件的样式。 |
属性详细信息
acceptOptions
是否显示 accept with video 按钮的选项
acceptOptions: { showAcceptWithVideo: boolean }
属性值
{ showAcceptWithVideo: boolean }
alertText
警报文本”
alertText?: string
属性值
string
avatarImage
用户的头像图像的 URL
avatarImage?: string
属性值
string
callerName
来电者姓名
callerName?: string
属性值
string
onAcceptWithAudio
带音频接听电话的回调
onAcceptWithAudio: () => void
属性值
() => void
onAcceptWithVideo
通过 Video 接听电话的回调
onAcceptWithVideo: () => void
属性值
() => void
onDismiss
通知关闭时的回调
onDismiss?: () => void
属性值
() => void
onReject
拒绝通话的回调
onReject: () => void
属性值
() => void
onRenderAvatar
渲染头像的回调
onRenderAvatar?: () => Element
属性值
() => Element
personaSize
persona 硬币的大小
personaSize?: number
属性值
number