Added in API level 9
Deprecated in API level 31

SipRegistrationListener


interface SipRegistrationListener
android.net.sip.SipRegistrationListener

Listener for SIP registration events.

Summary

Public methods
abstract Unit
onRegistering(localProfileUri: String!)

Called when a registration request is sent.

abstract Unit
onRegistrationDone(localProfileUri: String!, expiryTime: Long)

Called when the registration succeeded.

abstract Unit
onRegistrationFailed(localProfileUri: String!, errorCode: Int, errorMessage: String!)

Called when the registration failed.

Public methods

onRegistering

Added in API level 9
abstract fun onRegistering(localProfileUri: String!): Unit

Deprecated: Deprecated in Java.

Called when a registration request is sent.

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

onRegistrationDone

Added in API level 9
abstract fun onRegistrationDone(
    localProfileUri: String!,
    expiryTime: Long
): Unit

Deprecated: Deprecated in Java.

Called when the registration succeeded.

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
abstract fun onRegistrationFailed(
    localProfileUri: String!,
    errorCode: Int,
    errorMessage: String!
): Unit

Deprecated: Deprecated in Java.

Called when the registration failed.

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