语言

CallControl.SendEvent(String, Bundle) 方法

定义

向跟踪此调用的android.telecom.InCallService实现引发事件android.telecom.Call.Callback#onConnectionEvent(Call, String, Bundle)。

[Android.Runtime.Register("sendEvent", "(Ljava/lang/String;Landroid/os/Bundle;)V", "", ApiSince=34)]
public void SendEvent(string e, Android.OS.Bundle extras);
[<Android.Runtime.Register("sendEvent", "(Ljava/lang/String;Landroid/os/Bundle;)V", "", ApiSince=34)>]
member this.SendEvent : string * Android.OS.Bundle -> unit

参数

e
String
extras
Bundle

android.os.Bundle包含有关事件的信息,如 VoIP 应用程序与 android.telecom.InCallService.

特性

注解

向跟踪此调用的android.telecom.InCallService实现引发事件android.telecom.Call.Callback#onConnectionEvent(Call, String, Bundle)。 这些事件和参数的关联额外键Bundle由 VoIP 应用程序相互定义,android.telecom.InCallService 此 API 用于中继有关调用的其他信息,而不是在 tos android.telecom.CallAttributes中指定的android.telecom.InCallService调用。 例如,这可能包括对会议中参与者列表的更改,或举手的演讲者的姓名。 在适当情况下,跟踪 InCallService此调用可以选择呈现有关呼叫的其他信息。 例如,汽车呼叫 UX 可能有足够的屏幕空间来指示会议中的参与者数,但为了防止分心可能会抑制参与者列表。

Java文档android.telecom.CallControl.sendEvent(java.lang.String, android.os.Bundle)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于