Most visited

Recently visited

Added in API level 9

SipRegistrationListener

public interface SipRegistrationListener

android.net.sip.SipRegistrationListener


SIP注册事件的监听器。

Summary

Public methods

abstract void onRegistering(String localProfileUri)

在发送注册请求时调用。

abstract void onRegistrationDone(String localProfileUri, long expiryTime)

当注册成功时调用。

abstract void onRegistrationFailed(String localProfileUri, int errorCode, String errorMessage)

当注册失败时调用。

Public methods

onRegistering

Added in API level 9
void onRegistering (String localProfileUri)

在发送注册请求时调用。

Parameters
localProfileUri String: the URI string of the SIP profile to register with

onRegistrationDone

Added in API level 9
void onRegistrationDone (String localProfileUri, 
                long expiryTime)

当注册成功时调用。

Parameters
localProfileUri String: the URI string of the SIP profile to register with
expiryTime long: duration in seconds before the registration expires

onRegistrationFailed

Added in API level 9
void onRegistrationFailed (String localProfileUri, 
                int errorCode, 
                String errorMessage)

当注册失败时调用。

Parameters
localProfileUri String: the URI string of the SIP profile to register with
errorCode int: error code of this error
errorMessage String: error message

也可以看看:

Hooray!