FileDocCategorySizeDatePackage
ConferenceParticipant.javaAPI DocAndroid 5.1 API4931Thu Mar 12 22:22:42 GMT 2015android.telecom

ConferenceParticipant

public class ConferenceParticipant extends Object implements android.os.Parcelable
Parcelable representation of a participant's state in a conference call.
hide

Fields Summary
private final android.net.Uri
mHandle
The conference participant's handle (e.g., phone number).
private final String
mDisplayName
The display name for the participant.
private final android.net.Uri
mEndpoint
The endpoint Uri which uniquely identifies this conference participant. E.g. for an IMS conference call, this is the endpoint URI for the participant on the IMS conference server.
private final int
mState
The state of the participant in the conference.
public static final Parcelable.Creator
CREATOR
Responsible for creating {@code ConferenceParticipant} objects for deserialized Parcels.
Constructors Summary
public ConferenceParticipant(android.net.Uri handle, String displayName, android.net.Uri endpoint, int state)
Creates an instance of {@code ConferenceParticipant}.

param
handle The conference participant's handle (e.g., phone number).
param
displayName The display name for the participant.
param
endpoint The enpoint Uri which uniquely identifies this conference participant.
param
state The state of the participant in the conference.

        mHandle = handle;
        mDisplayName = displayName;
        mEndpoint = endpoint;
        mState = state;
    
Methods Summary
public intdescribeContents()


    
       
        return 0;
    
public java.lang.StringgetDisplayName()
The display name for the participant.

        return mDisplayName;
    
public android.net.UrigetEndpoint()
The enpoint Uri which uniquely identifies this conference participant. E.g. for an IMS conference call, this is the endpoint URI for the participant on the IMS conference server.

        return mEndpoint;
    
public android.net.UrigetHandle()
The conference participant's handle (e.g., phone number).

        return mHandle;
    
public intgetState()
The state of the participant in the conference.

see
android.telecom.Connection

        return mState;
    
public java.lang.StringtoString()
Builds a string representation of this instance.

return
String representing the conference participant.

        StringBuilder sb = new StringBuilder();
        sb.append("[ConferenceParticipant Handle: ");
        sb.append(mHandle);
        sb.append(" DisplayName: ");
        sb.append(mDisplayName);
        sb.append(" Endpoint: ");
        sb.append(mEndpoint);
        sb.append(" State: ");
        sb.append(mState);
        sb.append("]");
        return sb.toString();
    
public voidwriteToParcel(android.os.Parcel dest, int flags)
Writes the {@code ConferenceParticipant} to a parcel.

param
dest The Parcel in which the object should be written.
param
flags Additional flags about how the object should be written.

        dest.writeParcelable(mHandle, 0);
        dest.writeString(mDisplayName);
        dest.writeParcelable(mEndpoint, 0);
        dest.writeInt(mState);