Rate this page:

Voximplant

Primary interface of the Voximplant SDK.

Methods

createAudioFile

Static
Copy URL
createAudioFile(url: 

String

,
usage:

AudioFileUsage

):

IAudioFile

Creates an IAudioFile instance to play an audio file from URL.

Parameters

  • url:

    String

    HTTP URL of the stream to play

  • Audio file usage mode

Returns

createAudioFile

Static
Copy URL
createAudioFile(context: 

Context

,
uri:

Uri

,
usage:

AudioFileUsage

):

IAudioFile

Creates an IAudioFile instance to play an audio file from Uri.

Parameters

  • context:

    Context

    Application context

  • uri:

    Uri

    Uri to get the audio file

  • Audio file usage mode

Returns

createAudioFile

Static
Copy URL
createAudioFile(context: 

Context

,
resId:

int

,
usage:

AudioFileUsage

):

IAudioFile

Creates a IAudioFile instance to play an audio file from the application resources.

Parameters

  • context:

    Context

    Application context

  • resId:

    int

    The raw resource ID (R.raw.<something>) for the resource

  • Audio file usage mode

Returns

getAudioDeviceManager

Static
Copy URL
getAudioDeviceManager(): 

IAudioDeviceManager

Gets the IAudioDeviceManager instance to control audio hardware settings.

getCameraManager

Static
Copy URL
getCameraManager(context: 

Context

):

ICameraManager

Gets the ICameraManager instance to control camera hardware settings.

Parameters

  • context:

    Context

    Android context

Returns

getClientInstance

Static
Copy URL
getClientInstance(executor: 

Executor

,
context:

Context

,
clientConfig:

ClientConfig

):

IClient

Get IClient instance to connect and login to Voximplant cloud, make and receive calls

Parameters

  • executor:

    Executor

    Executor on which all Voximplant Android SDK events will be received

  • context:

    Context

    Android context

  • clientConfig:

    ClientConfig

    ClientConfig instance with configuration for IClient instance

Returns

Throws

ClientException If it has failed to load the native library required for the SDK functionality. In this case the SDK API cannot be used. (since 2.38.0)

getCustomVideoSource

Static
Copy URL
getCustomVideoSource(): 

ICustomVideoSource

Gets an ICustomVideoSource instance to send video frames from a custom source.

Returns

getMessenger

Static
Copy URL
getMessenger(): 

IMessenger

Gets the messaging subsystem instance.

Returns

getMessengerPushNotificationProcessing

Static
Copy URL
getMessengerPushNotificationProcessing(): 

IMessengerPushNotificationProcessing

getMissingPermissions

Static
Copy URL
getMissingPermissions(context: 

Context

,
videoSupportEnabled:

boolean

):

List<String>

Gets the list of required permissions that have not been granted by a user yet.

The following "dangerous" permissions are checked for audio calls (videoSupportEnabled is set to false):

  • RECORD_AUDIO
  • BLUETOOTH_CONNECT (if target sdk is 31 or higher)

The following "dangerous" permissions are checked for video calls (videoSupportEnabled is set to true):

  • RECORD_AUDIO
  • BLUETOOTH_CONNECT (if target sdk is 31 or higher)
  • CAMERA

It also checks the following "normal" permissions that should be granted automatically:

  • INTERNET
  • ACCESS_NETWORK_STATE
  • CHANGE_NETWORK_STATE
  • MODIFY_AUDIO_SETTINGS

Parameters

  • context:

    Context

    Android context

  • videoSupportEnabled:

    boolean

    Whether the permissions for video calls are required

Returns

  • type:

    List<String>

setLogListener

Static
Copy URL
setLogListener(logListener: 

ILogListener

):

void

Sets a log listener to handle the Voximplant Android SDK's log messages.

Parameters

Returns

  • type:

    void