VoxeetSDK

VoxeetSDK is the main object which provides methods interacting with the Voxeet service. It is the entry point to call the embedded services and static elements for developers. The SDK is asynchronous and uses promise at its core.

Typical application workflow:

1. The application accesses the Voxeet SDK instance by calling the instance method.

2. The application initializes the Voxeet SDK through the initialize method.

3. The application uses the proper method to retrieve the unique instance for a desired service. For example, the application uses the conference method to retrieve the ConferenceService instance.

Note: To use the EventBus and retrieve its unique instance, the application needs to call the getEventBus method. Then, the application can register and deregister the object from the EventBus.

Available in the package com.voxeet.VoxeetSDK.

Methods

instance

instance(): VoxeetSDK

Accesses the instance of the SDK which enables to use methods specific for the SDK.
Services are available using static methods.

Note: Every service method can return a null object if the SDK is initialized for the first time.

Returns: @NonNull VoxeetSDK - The SDK instance if the static initialize method was called.


initialize

initialize(@NonNull accessToken: String, @NonNull refreshToken: RefreshTokenCallback): void

Initializes the SDK with the client access token provided by the Dolby.io platform. The client access token protects customer's conferences from unauthorized access and can be generated only by the Dolby.io platform via an application's authentication server and the client access token request.

The method requires providing two parameters - the client access token received from the Dolby.io platform and the refresh token callback. The callback must be a function that requests a new token and returns a promise containing the refreshed client access token when the token is incorrect or needs to be refreshed. The refresh token callback uses an isExpired boolean parameter to inform whether the currently used client access token is expired.

For more information, see the Accessing Dolby.io Platform guide.

Parameters

NameTypeDescription
accessTokenStringnon null The access token that is provided by the customer's backend.
refreshTokenRefreshTokenCallbacknon null A callback that returns a promise when the access token needs to be refreshed.

conference

conference(): ConferenceService

Retrieves the unique ConferenceService instance which enables the participant to interact with conferences.

Returns: @NonNull ConferenceService - With an initialized SDK, the instance of the ConferenceService.


mediaDevice

mediaDevice(): MediaDeviceService

Retrieves the unique MediaDeviceService instance which enables the participant to interact with devices through the system.

Returns: @NonNull MediaDeviceService - With an initialized SDK, the instance of the MediaDeviceService.


screenShare

screenShare(): ScreenShareService

Retrieves the unique ScreenShareService instance which enables the participant to use the screen sharing option.

Returns: @NonNull ScreenShareService - With an initialized SDK, the instance of the ScreenShareService.


session

session(): SessionService

Retrieves the unique SessionService instance which enables the participant to use sessions.

Returns: @NonNull SessionService - With an initialized SDK, the instance of the SessionService.


filePresentation

filePresentation(): FilePresentationService

Retrieves the unique FilePresentationService instance which enables the participant to use file presentations.

Returns: @NonNull FilePresentationService - With an initialized SDK, the instance of the FilePresentationService.


videoPresentation

videoPresentation(): VideoPresentationService

Retrieves the unique videoPresentationService instance which enables the participant to use video presentations.

Returns: @NonNull VideoPresentationService - With an initialized SDK, the instance of the VideoPresentationService.


audio

audio(): AudioService

Retrieves the unique AudioService instance which enables the participant to manage the audio connection.

Returns: @NonNull AudioService - With an initialized SDK, the instance of the AudioService.


video

video(): VideoService

Retrieves the unique VideoService instance which enables the participant to interact with video related API.

Note: This method is available only in SDK 3.7 and later.

Returns: @NonNull VideoService - With an initialized SDK, the instance of the VideoService.


recording

recording(): RecordingService

Retrieves the unique RecordingService instance which enables the participant to use the recording option.

This service wraps the recording related calls.

Returns: @NonNull RecordingService - With an initialized SDK, the instance of the RecordingService.


command

command(): CommandService

Retrieves the unique CommandService instance which enables the participant to send messages in a string formatted shape into specified conferences.

Returns: @NonNull CommandService - With an initialized SDK, the instance of the CommandService.


notification

notification(): NotificationService

Retrieves the unique NotificationService instance which enables forwarding notifications from developer to the properly registered manager.

Returns: @NonNull NotificationService - With an initialized SDK, the instance of the NotificationService.


getEventBus

getEventBus(): EventBus

Retrieves the instance of EventBus used by the SDK.

Returns: @NonNull EventBus - The instance of the EventBus used internally.


register

register(@Nullable subscriber: Object): boolean

Registers object into the EventBus of the SDK. Call this method before creating or joining any conference to trigger events.

Parameters

NameTypeDescription
subscriberObjectnullable subscriber

Returns: boolean


unregister

unregister(@NonNull subscriber: Object): void

Deregisters from the EventBus instance. Call this method to remove your Activity or Fragment.

Parameters

NameTypeDescription
subscriberObjectnon null subscriber