createClient

public final static VoiceClient createClient(Context ctx, VGClientInitConfig config)
public final static VoiceClient createClient(Context ctx)

VoiceClient SDK Factory Method

Factory method to create a VoiceClient instance, which is the main entry point to the Voice SDK.

Return

A VoiceClient instance - the main entry point to the Voice SDK

Parameters

ctx

Context

config

The initial configuration object. If not provided a default one will be passed

Throws

VonageError

if the supplied config object contains more than MAX_NUM_CUSTOM_LOGGERS custom loggers