次の方法で共有


SipManager.GetSessionFor(Intent) Method

Definition

Gets the SipSession that handles the incoming call.

[Android.Runtime.Register("getSessionFor", "(Landroid/content/Intent;)Landroid/net/sip/SipSession;", "GetGetSessionFor_Landroid_content_Intent_Handler")]
public virtual Android.Net.Sip.SipSession? GetSessionFor (Android.Content.Intent? incomingCallIntent);
[<Android.Runtime.Register("getSessionFor", "(Landroid/content/Intent;)Landroid/net/sip/SipSession;", "GetGetSessionFor_Landroid_content_Intent_Handler")>]
abstract member GetSessionFor : Android.Content.Intent -> Android.Net.Sip.SipSession
override this.GetSessionFor : Android.Content.Intent -> Android.Net.Sip.SipSession

Parameters

incomingCallIntent
Intent

the incoming call broadcast intent

Returns

the session object that handles the incoming call

Attributes

Exceptions

Remarks

Gets the SipSession that handles the incoming call. For audio calls, consider to use SipAudioCall to handle the incoming call. See #takeAudioCall. Note that the method may be called only once for the same intent. For subsequent calls on the same intent, the method returns null.

Java documentation for android.net.sip.SipManager.getSessionFor(android.content.Intent).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to