TVOCall Class Reference

Inherits from NSObject
Declared in TVOCall.h

Overview

The TVOCall object represents a call. TVOCall objects are not created directly; they are returned by the [TVOCallInvite acceptWithDelegate:] method or the [TwilioVoice call:params:delegate:] method.

CallKit Call Actions

Properties

  delegate

The TVOCallDelegate object that will receive call state updates.

@property (nonatomic, weak, nullable) id<TVOCallDelegate> delegate

See Also

Declared In

TVOCall.h

  from

From value of the call.

@property (nonatomic, strong, readonly, nonnull) NSString *from

Discussion

This may be nil if the call object was created by calling the [TwilioVoice call:params:delegate:] method.

Declared In

TVOCall.h

  to

To value of the call.

@property (nonatomic, strong, readonly, nonnull) NSString *to

Discussion

This may be nil if the call object was created by calling the [TwilioVoice call:params:delegate:] method.

Declared In

TVOCall.h

  sid

Call SID value of the call.

@property (nonatomic, strong, readonly, nonnull) NSString *sid

Declared In

TVOCall.h

  muted

Property that defines if the call is muted.

@property (nonatomic, assign, getter=isMuted) BOOL muted

Discussion

Setting the property will only take effect if the state is TVOCallConnected.

Declared In

TVOCall.h

  state

State of the call.

@property (nonatomic, assign, readonly) TVOCallState state

See Also

Declared In

TVOCall.h

General Call Actions

– disconnect

Disconnects the call.

- (void)disconnect

Discussion

Calling this method on a TVOCall that does not have the state of TVOCallStateConnected will have no effect.

Declared In

TVOCall.h

– sendDigits:

Send a string of digits.

- (void)sendDigits:(nonnull NSString *)digits

Parameters

digits

A string of characters to be played. Valid values are ‘0’ - ‘9’, ‘*’, ‘#’, and ‘w’. Each ‘w’ will cause a 500 ms pause between digits sent.

Discussion

Calling this method on a TVOCall that does not have the state of TVOCallStateConnected will have no effect.

Declared In

TVOCall.h

CallKitIntegration Methods

  uuid

UUID of the call.

@property (nonatomic, strong, nonnull) NSUUID *uuid

Discussion

Use this UUID for CallKit methods.

Declared In

TVOCall.h