TwilioVideo Class Reference

Inherits from NSObject
Declared in TwilioVideo.h

Overview

TwilioVideo is the root class of the TwilioVideo SDK. You can connect to a Room using class methods on this class.

– init

Developers shouldn’t initialize this class directly.

- (null_unspecified instancetype)init

Discussion

Use TwilioVideo class factory methods to create a TVIRoom.

Declared In

TwilioVideo.h

+ connectWithOptions:delegate:

Connect to a Room with options and a delegate.

+ (nonnull TVIRoom *)connectWithOptions:(nonnull TVIConnectOptions *)options delegate:(nullable id<TVIRoomDelegate>)delegate

Parameters

options

The connect options.

delegate

A delegate conforming to TVIRoomDelegate for handling Room related events.

Return Value

An instance of TVIRoom if successful and nil otherwise.

Declared In

TwilioVideo.h

+ version

Returns the SDK version.

+ (nonnull NSString *)version

Return Value

Video sdk version of type string.

Declared In

TwilioVideo.h

+ logLevel

Retrieve the log level for the Video SDK. The default log level is TVILogLevelError.

+ (TVILogLevel)logLevel

Return Value

The current log level.

Declared In

TwilioVideo.h

+ setLogLevel:

Set the log level for the TwilioVideo SDK.

+ (void)setLogLevel:(TVILogLevel)logLevel

Parameters

logLevel

The TVILogLevel in use by the system.

Declared In

TwilioVideo.h

+ setLogLevel:module:

Set the log level for a specific module in the TwilioVideo SDK.

+ (void)setLogLevel:(TVILogLevel)logLevel module:(TVILogModule)module

Parameters

logLevel

The TVILogLevel to be used by the module.

module

The TVILogModule for which the log level needs to be set.

Declared In

TwilioVideo.h