Freigeben über


SipManager.SetRegistrationListener(String, ISipRegistrationListener) Method

Definition

Sets the listener to listen to registration events.

[Android.Runtime.Register("setRegistrationListener", "(Ljava/lang/String;Landroid/net/sip/SipRegistrationListener;)V", "GetSetRegistrationListener_Ljava_lang_String_Landroid_net_sip_SipRegistrationListener_Handler")]
public virtual void SetRegistrationListener (string? localProfileUri, Android.Net.Sip.ISipRegistrationListener? listener);
[<Android.Runtime.Register("setRegistrationListener", "(Ljava/lang/String;Landroid/net/sip/SipRegistrationListener;)V", "GetSetRegistrationListener_Ljava_lang_String_Landroid_net_sip_SipRegistrationListener_Handler")>]
abstract member SetRegistrationListener : string * Android.Net.Sip.ISipRegistrationListener -> unit
override this.SetRegistrationListener : string * Android.Net.Sip.ISipRegistrationListener -> unit

Parameters

localProfileUri
String

the URI of the profile

listener
ISipRegistrationListener

to listen to registration events; can be null

Attributes

Exceptions

if calling the SIP service results in an error

Remarks

Sets the listener to listen to registration events. No effect if the profile has not been opened to receive calls (see #open(SipProfile, PendingIntent, SipRegistrationListener)).

Java documentation for android.net.sip.SipManager.setRegistrationListener(java.lang.String, android.net.sip.SipRegistrationListener).

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