gpt4 book ai didi

blackberry - 如何在电话响铃时或之前触发事件?

转载 作者:行者123 更新时间:2023-12-04 11:46:08 24 4
gpt4 key购买 nike

在黑莓上,是否有任何可以在电话响起之前和之后发生的暴露事件?

例如如果号码是 999-9999,您能否即时覆盖振铃设置而不让它振铃?

最佳答案

是的,很有可能。
您需要连接到“电话事件”并创建一个电话监听器。
文档对此给出了一些提示。因此,启动您最喜欢的 Java IDE 并继续前进!

http://na.blackberry.com/eng/deliverables/1076/development.pdf (环顾第 190 页)

Listen for phone events.     >Implement the PhoneListener interface.
Register the phone listener. >Invoke Phone.addPhoneListener().
Remove a phone listener. >Invoke removePhoneListener().

当新调用到达时,它使用 callIncoming(int) 回调。还有一堆:
    A call is added to a conference call.
callAdded(int)

A BlackBerry® device user answers a call (user driven).
callAnswered(int)

A conference call is established.
callConferenceCallEstablished(int)

The network indicates a connected event (network driven).
callConnected(int)

A direct-connect call is connected.
callDirectConnectConnected(int)

A direct-connect call is disconnected.
callDirectConnectDisconnected(int)

A call is disconnected.
callDisconnected(int)

A BlackBerry device user ends the call.
callEndedByUser(int)

A call fails.
callFailed(int, int)

A new call arrives.
callIncoming(int)

The BlackBerry device initiates an outgoing call.
callInitiated(int)

A call is removed from a conference call.
callRemoved(int)

A held call resumes.
callResumed(int)

A call is waiting.
callWaiting(int)

A conference call is ended (all members are disconnected).
conferenceCallDisconnected(int)

关于blackberry - 如何在电话响铃时或之前触发事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1059990/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com