Class CancelledCallInvite

  • All Implemented Interfaces:
    android.os.Parcelable

    public class CancelledCallInvite
    extends java.lang.Object
    implements android.os.Parcelable
    Represents an incoming call cancellation.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int describeContents()  
      boolean equals​(java.lang.Object o)  
      java.lang.String getCallSid()
      Returns the CallSid.
      java.util.Map<java.lang.String,​java.lang.String> getCustomParameters()
      Returns the custom parameters.
      java.lang.String getFrom()
      Returns the caller information.
      java.lang.String getTo()
      Returns the callee information.
      void writeToParcel​(android.os.Parcel dest, int flags)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator CREATOR
    • Method Detail

      • getFrom

        @Nullable
        public java.lang.String getFrom()
        Returns the caller information.
      • getTo

        @NonNull
        public java.lang.String getTo()
        Returns the callee information.
      • getCallSid

        @NonNull
        public java.lang.String getCallSid()
        Returns the CallSid.
      • getCustomParameters

        @NonNull
        public java.util.Map<java.lang.String,​java.lang.String> getCustomParameters()
        Returns the custom parameters.

         
         // Pass custom parameters in TwiML
         <?xml version="1.0" encoding="UTF-8"?>
         <Response>
            <Dial answerOnBridge="false" callerId="client:alice">
                <Client>
                    <Identity>bob</Identity>
                    <Parameter name="caller_first_name" value="alice"  />
                    <Parameter name="caller_last_name" value="smith"  />
                </Client>
             </Dial>
         </Response>
         
         `cancelledCallInvite.getCustomParameters()` returns a map of key-value pair passed in the TwiML.
         
         "caller_first_name" -> "alice"
         "caller_last_name" -> "smith"
         
         
        NOTE: While the value field passed into <Parameter> gets URI encoded by the Twilio infrastructure and URI decoded when parsed during the creation of a CancelledCallInvite, the name does not get URI encoded or decoded. As a result, it is recommended that the name field only use ASCII characters.
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object