Stay organized with collections
Save and categorize content based on your preferences.
SipRegistrationListener
public
interface
SipRegistrationListener
android.net.sip.SipRegistrationListener
|
This interface was deprecated
in API level 31.
SipManager
and associated classes are no longer supported and
should not be used as the basis of future VOIP apps.
Listener for SIP registration events.
Summary
Public methods
onRegistering
public abstract void onRegistering (String localProfileUri)
Called when a registration request is sent.
Parameters |
localProfileUri |
String : the URI string of the SIP profile to register with |
onRegistrationDone
public abstract void onRegistrationDone (String localProfileUri,
long expiryTime)
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
public abstract void onRegistrationFailed (String localProfileUri,
int errorCode,
String errorMessage)
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# SipRegistrationListener\n\nAdded in [API level 9](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n31](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nSipRegistrationListener\n=======================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/net/sip/SipRegistrationListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\n\n\ninterface\nSipRegistrationListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------|\n| android.net.sip.SipRegistrationListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface was deprecated\nin API level 31.** \n\n[SipManager](/reference/android/net/sip/SipManager) and associated classes are no longer supported and\nshould not be used as the basis of future VOIP apps.\n\nListener for SIP registration events.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onRegistering](/reference/android/net/sip/SipRegistrationListener#onRegistering(java.lang.String))`(`[String](/reference/java/lang/String)` localProfileUri) ` Called when a registration request is sent. |\n| ` abstract void` | ` `[onRegistrationDone](/reference/android/net/sip/SipRegistrationListener#onRegistrationDone(java.lang.String,%20long))`(`[String](/reference/java/lang/String)` localProfileUri, long expiryTime) ` Called when the registration succeeded. |\n| ` abstract void` | ` `[onRegistrationFailed](/reference/android/net/sip/SipRegistrationListener#onRegistrationFailed(java.lang.String,%20int,%20java.lang.String))`(`[String](/reference/java/lang/String)` localProfileUri, int errorCode, `[String](/reference/java/lang/String)` errorMessage) ` Called when the registration failed. |\n\nPublic methods\n--------------\n\n### onRegistering\n\nAdded in [API level 9](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onRegistering (String localProfileUri)\n```\n\nCalled when a registration request is sent.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------------|---------------------------------------------------------------------|\n| `localProfileUri` | `String`: the URI string of the SIP profile to register with \u003cbr /\u003e |\n\n### onRegistrationDone\n\nAdded in [API level 9](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onRegistrationDone (String localProfileUri, \n long expiryTime)\n```\n\nCalled when the registration succeeded.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------------|---------------------------------------------------------------------|\n| `localProfileUri` | `String`: the URI string of the SIP profile to register with \u003cbr /\u003e |\n| `expiryTime` | `long`: duration in seconds before the registration expires \u003cbr /\u003e |\n\n### onRegistrationFailed\n\nAdded in [API level 9](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onRegistrationFailed (String localProfileUri, \n int errorCode, \n String errorMessage)\n```\n\nCalled when the registration failed.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------------|---------------------------------------------------------------------|\n| `localProfileUri` | `String`: the URI string of the SIP profile to register with \u003cbr /\u003e |\n| `errorCode` | `int`: error code of this error \u003cbr /\u003e |\n| `errorMessage` | `String`: error message \u003cbr /\u003e |\n\n**See also:**\n\n- [SipErrorCode](/reference/android/net/sip/SipErrorCode)"]]