Class CallInvite

  • All Implemented Interfaces:
    android.os.Parcelable

    public class CallInvite
    extends java.lang.Object
    implements android.os.Parcelable
    Represents an incoming call message from Twilio. This object is used to respond to an incoming call by calling accept(Context, Call.Listener) or reject(Context)
    • 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 Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Call accept​(android.content.Context context, AcceptOptions acceptOptions, Call.Listener listener)
      Accepts the CallInvite with the provided AcceptOptions and returns a new Call.
      Call accept​(android.content.Context context, Call.Listener listener)
      Accepts the CallInvite with default AcceptOptions and returns a new Call.
      int describeContents()  
      boolean equals​(java.lang.Object o)  
      CallerInfo getCallerInfo()
      Returns the CallerInfo that provides caller verification information about the caller.
      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 when available.
      java.lang.String getTo()
      Returns the callee information.
      static boolean isValid​(android.content.Context context, android.os.Bundle data)
      Validates whether the payload is a valid notification sent by Twilio.
      static boolean isValid​(android.content.Context context, java.util.Map<java.lang.String,​java.lang.String> data)
      Validates whether the payload is a valid notification sent by Twilio.
      void reject​(android.content.Context context)
      Rejects the incoming CallInvite.
      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