語言

SipManager.Open 方法

定義

多載

名稱 Description
Open(SipProfile)

開啟設定檔以進行一般 SIP 呼叫。

Open(SipProfile, PendingIntent, ISipRegistrationListener)

開啟設定檔以撥打電話和/或接收通用 SIP 通話。

Open(SipProfile)

開啟設定檔以進行一般 SIP 呼叫。

[Android.Runtime.Register("open", "(Landroid/net/sip/SipProfile;)V", "GetOpen_Landroid_net_sip_SipProfile_Handler")]
public virtual void Open(Android.Net.Sip.SipProfile? localProfile);
[<Android.Runtime.Register("open", "(Landroid/net/sip/SipProfile;)V", "GetOpen_Landroid_net_sip_SipProfile_Handler")>]
abstract member Open : Android.Net.Sip.SipProfile -> unit
override this.Open : Android.Net.Sip.SipProfile -> unit

參數

localProfile
SipProfile

SIP 設定檔用來撥打電話

屬性

例外狀況

若設定檔設定錯誤或呼叫 SIP 服務導致錯誤

備註

開啟設定檔以進行一般 SIP 呼叫。 來電者可透過 #makeAudioCall進行後續通話。 如果用戶也想在個人檔案上接聽來電,請改用 #open(SipProfile, PendingIntent, SipRegistrationListener) 。

Java 文件 android.net.sip.SipManager.open(android.net.sip.SipProfile)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Open(SipProfile, PendingIntent, ISipRegistrationListener)

開啟設定檔以撥打電話和/或接收通用 SIP 通話。

[Android.Runtime.Register("open", "(Landroid/net/sip/SipProfile;Landroid/app/PendingIntent;Landroid/net/sip/SipRegistrationListener;)V", "GetOpen_Landroid_net_sip_SipProfile_Landroid_app_PendingIntent_Landroid_net_sip_SipRegistrationListener_Handler")]
public virtual void Open(Android.Net.Sip.SipProfile? localProfile, Android.App.PendingIntent? incomingCallPendingIntent, Android.Net.Sip.ISipRegistrationListener? listener);
[<Android.Runtime.Register("open", "(Landroid/net/sip/SipProfile;Landroid/app/PendingIntent;Landroid/net/sip/SipRegistrationListener;)V", "GetOpen_Landroid_net_sip_SipProfile_Landroid_app_PendingIntent_Landroid_net_sip_SipRegistrationListener_Handler")>]
abstract member Open : Android.Net.Sip.SipProfile * Android.App.PendingIntent * Android.Net.Sip.ISipRegistrationListener -> unit
override this.Open : Android.Net.Sip.SipProfile * Android.App.PendingIntent * Android.Net.Sip.ISipRegistrationListener -> unit

參數

localProfile
SipProfile

SIP 設定檔用於接收來電

incomingCallPendingIntent
PendingIntent

當接到來電時,SIP 服務會撥回 PendingIntent#send(Context, int, Intent) 來電,將意圖以結果代碼及意圖回傳給來 #INCOMING_CALL_RESULT_CODE 叫者,並填寫通話 ID 與會話描述資訊。 它不可能是無效的。

listener
ISipRegistrationListener

聆聽報名活動;可以為零

屬性

例外狀況

若 incomingCallPendingIntent 為空

若設定檔設定錯誤或呼叫 SIP 服務導致錯誤

備註

開啟設定檔以撥打電話和/或接收通用 SIP 通話。 來電者可透過 #makeAudioCall進行後續通話。 若設定檔啟用自動註冊選項,SIP 服務會定期將設定檔註冊給對應的 SIP 供應商,以便接聽該供應商的來電。 當 SIP 服務收到新通話時,會發送包含所提供動作字串的意圖。 意圖包含一個呼叫編號額外和一個提供會話描述字串。 使用 #getCallId 和 #getOfferSessionDescription 取回那些多餘的。

Java 文件 android.net.sip.SipManager.open(android.net.sip.SipProfile, android.app.PendingIntent, android.net.sip.SipRegistrationListener)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

另請參閱

適用於