public interface Account
ProxyConfig. Use a AccountParams| Modifier and Type | Method | Description |
|---|---|---|
void |
addCustomParam(java.lang.String key,
java.lang.String value) |
Set one custom parameter to this
Account. |
void |
addListener(AccountListener listener) |
|
Account |
clone() |
Instantiate a new account with values from source.
|
AuthInfo |
findAuthInfo() |
Find authentication info matching account, if any, similarly to
linphone_core_find_auth_info. |
Address |
getContactAddress() |
Return the contact address of the account.
|
Core |
getCore() |
|
java.lang.String |
getCustomHeader(java.lang.String headerName) |
Obtain the value of a header sent by the server in last answer to REGISTER.
|
java.lang.String |
getCustomParam(java.lang.String key) |
Get the custom parameter with key to this
Account. |
Account |
getDependency() |
Get the dependency of a
Account. |
Reason |
getError() |
Get the reason why registration failed when the account state is
LinphoneRegistrationFailed. |
ErrorInfo |
getErrorInfo() |
Get detailed information why registration failed when the account state is
LinphoneRegistrationFailed. |
long |
getNativePointer() |
Gets the native pointer used by this class to make native method calls.
|
AccountParams |
getParams() |
Get the
AccountParams as read-only object. |
RegistrationState |
getState() |
Get the registration state of the given account.
|
TransportType |
getTransport() |
Deprecated.
01/03/2021 Use Linphone_account_params_get_transport() instead.
|
int |
getUnreadChatMessageCount() |
Return the unread chat message count for a given account.
|
java.lang.Object |
getUserData() |
Gets the object stored in this object user's data
|
boolean |
isAvpfEnabled() |
Indicates whether AVPF/SAVPF is being used for calls using this account.
|
boolean |
isPhoneNumber(java.lang.String username) |
Detect if the given input is a phone number or not.
|
Account |
newWithConfig(Core lc,
AccountParams params,
ProxyConfig config) |
Create a new
Account with a Proxy config backpointer. |
java.lang.String |
normalizePhoneNumber(java.lang.String username) |
Normalize a human readable phone number into a basic string.
|
Address |
normalizeSipUri(java.lang.String username) |
Normalize a human readable sip uri into a fully qualified LinphoneAddress.
|
void |
pauseRegister() |
Prevent an account from refreshing its registration.
|
void |
refreshRegister() |
Refresh a proxy registration.
|
void |
removeListener(AccountListener listener) |
|
void |
setContactAddress(Address addr) |
Set the contact address for the account.
|
void |
setCustomHeader(java.lang.String headerName,
java.lang.String headerValue) |
Set the value of a custom header sent to the server in REGISTERs request.
|
void |
setDependency(Account dependsOn) |
Mark this account as being dependent on the given one.
|
int |
setParams(AccountParams params) |
Set the
AccountParams used by this Account. |
void |
setUserData(java.lang.Object data) |
Sets the object to store in this object user's data
|
java.lang.String |
toString() |
boolean isAvpfEnabled()
@Nullable Address getContactAddress()
Address correspong to the contact address of the account. void setContactAddress(@Nullable
Address addr)
addr - a Address to use as contact. @Nullable Account getDependency()
void setDependency(@Nullable
Account dependsOn)
AccountParams.setIdkey(java.lang.String)dependsOn - The Account this one shall be depending on. Reason getError()
Reason why registration failed for this account. @NonNull ErrorInfo getErrorInfo()
ErrorInfo explaining why registration failed for this@NonNull AccountParams getParams()
AccountParams as read-only object. AccountParams.clone()setParams(org.linphone.core.AccountParams). AccountParams attached to this account. int setParams(@NonNull
AccountParams params)
params - The AccountParams object. RegistrationState getState()
RegistrationState of the account. @Deprecated TransportType getTransport()
int getUnreadChatMessageCount()
void addCustomParam(@NonNull
java.lang.String key,
@NonNull
java.lang.String value)
key - key of the searched parameter. value - value of the searched parameter. @NonNull Account clone()
Account object. @Nullable AuthInfo findAuthInfo()
AuthInfo matching account criteria if possible, null if@Nullable
java.lang.String getCustomHeader(@NonNull
java.lang.String headerName)
headerName - The header name for which to fetch corresponding value. @NonNull
java.lang.String getCustomParam(@NonNull
java.lang.String key)
key - key of the searched parameter. boolean isPhoneNumber(@NonNull
java.lang.String username)
username - The string to parse. @Nullable
java.lang.String normalizePhoneNumber(@NonNull
java.lang.String username)
Accountusername - The string to parse. @Nullable Address normalizeSipUri(@NonNull java.lang.String username)
username - The string to parse. void pauseRegister()
refreshRegister(). void refreshRegister()
void setCustomHeader(@NonNull
java.lang.String headerName,
@Nullable
java.lang.String headerValue)
headerName - The header name. headerValue - The header value. @NonNull Account newWithConfig(@Nullable Core lc, @NonNull AccountParams params, @Nullable ProxyConfig config)
Account with a Proxy config backpointer. lc - The Core object. params - The AccountParams object. config - The ProxyConfig object. Account object. void addListener(AccountListener listener)
void removeListener(AccountListener listener)
void setUserData(java.lang.Object data)
data - the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString in class java.lang.Object