TVOCancelledCallInvite
Objective-C
@interface TVOCancelledCallInvite : NSObject
Swift
class TVOCancelledCallInvite : NSObject
The TVOCancelledCallInvite object represents a cancelled incoming Call Invite. TVOCancelledCallInvites are not created directly;
they are returned by the <[TVONotificationDelegate cancelledCallInviteReceived:error:]> delegate method.
-
@brief
Fromvalue of the Call Invite.@discussion This may be
nilif the notification passed in<[TwilioVoiceSDK handleNotification:delegate:delegateQueue:callMessageDelegate:]>method does not have valid information in it.Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *from;Swift
var from: String? { get } -
@brief
Tovalue of the Call Invite.Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *to;Swift
var to: String { get } -
@brief A server assigned identifier (SID) for the incoming Call.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *callSid;Swift
var callSid: String { get } -
@brief Custom parameters embedded in the VoIP notification payload.
@discussion The custom parameters will be received in the notification payload with the
twi_paramskey and in query-string format, e.g.key1=value1&key2=value2. To receive custom parameters on the mobile client, add<Parameter>tags into the<Client>tag in the TwiML response.<?xml version="1.0" encoding="UTF-8"?> <Response> <Dial callerId="client:alice"> <Client> <Identity>bob</Identity> <Parameter name="caller_first_name" value="alice" /> <Parameter name="caller_last_name" value="smith" /> </Client> </Dial> </Response>The
customParametersvalue would be:{ "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 aTVOCancelledCallInvite, the name does not get URI encoded or decoded. As a result, it is recommended that the name field only use ASCII characters.Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) NSDictionary<NSString *, NSString *> *customParameters;Swift
var customParameters: [String : String]? { get } -
Unavailable
TVOCancelledCallInvitescannot be instantiated directly. SeeTVONotificationDelegate@brief
TVOCancelCallInvitecannot be instantiated directly. See<TVONotificationDelegate>instead.See
TVONotificationDelegateDeclaration
Objective-C
- (null_unspecified instancetype)init;