TVONotificationDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | TVONotificationDelegate.h |
Overview
Objects can conform to the TVONotificationDelegate
protocol to be informed when incoming Call Invites are
received or canceled.
Required Methods
– callInviteReceived:
required method
Notifies the delegate that a Call Invite was received.
- (void)callInviteReceived:(nonnull TVOCallInvite *)callInvite
Parameters
callInvite |
A |
---|
Discussion
An Invite may be in the TVOCallInviteStatePending
or TVOCallInviteStateCanceled
state.
Calling [TwilioVoice handleMessage:]
will synchronously process your notification payload and
provide you a TVOCallInvite
object with TVOCallInviteStatePending
state.
The SDK may call [TVONotificationDelegate callInviteReceived:]
asynchronously on the main dispatch queue
with a TVOCallInvite
state of TVOCallInviteStateCanceled
if the caller hangs up or the client
encounters any other error before the called party could answer or reject the call.
See Also
Declared In
TVONotificationDelegate.h
– notificationError:
required method
Notifies the delegate synchronously that an error occurred when processing the VoIP
push notification payload.
- (void)notificationError:(nonnull NSError *)error
Parameters
error |
An |
---|
See Also
Declared In
TVONotificationDelegate.h