public class SipProfile extends Object implements Parcelable, Serializable, Cloneable
You can create a SipProfile
using SipProfile.Builder
. You can also retrieve one from a SipSession
, using SipSession.getLocalProfile()
and SipSession.getPeerProfile()
.
For more information about using SIP, read the Session Initiation Protocol developer guide.
Modifier and Type | Class and Description |
---|---|
static class |
SipProfile.Builder
Helper class for creating a
SipProfile . |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<SipProfile> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
String |
getAuthUserName()
Gets the username for authentication.
|
boolean |
getAutoRegistration()
Gets the flag of 'Auto Registration'.
|
int |
getCallingUid()
Gets the calling process's Uid in the sip settings.
|
String |
getDisplayName()
Gets the display name of the user.
|
String |
getPassword()
Gets the password.
|
int |
getPort()
Gets the port number of the SIP server.
|
String |
getProfileName()
Gets the (user-defined) name of the profile.
|
String |
getProtocol()
Gets the protocol used to connect to the server.
|
String |
getProxyAddress()
Gets the network address of the server outbound proxy.
|
boolean |
getSendKeepAlive()
Gets the flag of 'Sending keep-alive'.
|
Address |
getSipAddress()
Gets the SIP address of this profile.
|
String |
getSipDomain()
Gets the SIP domain.
|
SipURI |
getUri()
Gets the SIP URI of this profile.
|
String |
getUriString()
Gets the SIP URI string of this profile.
|
String |
getUserName()
Gets the username.
|
void |
setCallingUid(int uid)
Sets the calling process's Uid in the sip service.
|
void |
writeToParcel(Parcel out,
int flags)
Flatten this object in to a Parcel.
|
public static final Parcelable.Creator<SipProfile> CREATOR
public void writeToParcel(Parcel out, int flags)
Parcelable
writeToParcel
in interface Parcelable
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public SipURI getUri()
public String getUriString()
public Address getSipAddress()
public String getDisplayName()
public String getUserName()
public String getAuthUserName()
getUserName()
public String getPassword()
public String getSipDomain()
public int getPort()
public String getProtocol()
public String getProxyAddress()
public String getProfileName()
public boolean getSendKeepAlive()
public boolean getAutoRegistration()
public void setCallingUid(int uid)
public int getCallingUid()