BoostlingoSDK

public final class BoostlingoSDK

BoostlingoSDK is the entry point to the Boostlingo SDK. Used for accessing the Boostlingo API as well as initiating Calls.

Parameters

authToken

Boostlingo auth token retrieved from the server.

context

Android application context.

logLevel

Logging level.

region

Boostlingo region from getRegions() list.

Constructors

Link copied to clipboard
public BoostlingoSDK BoostlingoSDK(String authToken, Context context, BLLogLevel logLevel, String region)

Types

Link copied to clipboard
public class Companion

Properties

Link copied to clipboard
private final Observable<BLCallEvent> callEventObservable

Observable that provides BLCall events.

Link copied to clipboard
public final static BoostlingoSDK.Companion Companion
Link copied to clipboard
public final static String VERSION

Gets Boostlingo library version.

Functions

Link copied to clipboard
public final Unit dispose()

Disposes all the resources taken by the SDK.

Link copied to clipboard
public final Single<List<Language>> getAIInterpreterLanguages()

Retrieves the list of languages supported by the AI Interpreter call type. Filters the cached call dictionary by Language.aiSpeechEnabled. Languages are returned in their original dictionary order (no sort), because the AI Interpreter does not define a per-language ordering field.

Link copied to clipboard

Retrieves the list of service types supported by the AI Interpreter call type for the current user's company account. Filters the cached service types by the loaded AI policy's eligible service-type ids. Returns an empty list when AI Interpreter is not enabled for the account. Requires initialize to have completed so the AI policy is loaded.

Link copied to clipboard
public final Single<CallDetails> getCallDetails(Long callId)

Retrieves the call details from the Boostlingo API.

Link copied to clipboard
public final Single<CallDictionaries> getCallDictionaries()

Retrieves the call dictionaries from the Boostlingo API. Should be used for setting up language and service type lists, caches the results so API is not hit every time.

Link copied to clipboard
public final Observable<BLCallEvent> getCallEventObservable()

Observable that provides BLCall events.

Link copied to clipboard
public final BLCall getCurrentCall()

Gets current Boostlingo call.

Link copied to clipboard
public final Single<CustomForm> getPreCallForm()

Method for receiving pre-call form.

Link copied to clipboard
public final Single<Profile> getProfile()

Retrieves the profile data from the Boostlingo API, caches the results so API is not hit every time.

Link copied to clipboard
public final Single<List<Language>> getVideoLanguages()

Retrieves an ordered list of languages enabled in the video (VRI) policy. Helper for filtering and sorting the full list of languages. Uses the cached call dictionary.

Link copied to clipboard
public final Single<List<Language>> getVoiceLanguages()

Retrieves an ordered list of languages enabled in the voice (OPI) policy. Helper for filtering and sorting the full list of languages. Uses the cached call dictionary.

Link copied to clipboard
public final Completable hangUp()

Used to hang up the current call in Boostlingo.

Link copied to clipboard
public final Completable initialize()

Loads and caches all the data needed for the SDK work from the Boostlingo API. Will be called inside makeVideoCall or makeVoiceCall, if it is not called separately before.

Link copied to clipboard
public final Single<Boolean> isAIInterpreterAvailable()

Indicates whether AI Interpreter is available for the current user's company account. Returns true only when the loaded AI policy enables AI speech and exposes at least one eligible service type. Requires initialize to have completed.

Link copied to clipboard
public final Single<BLAICall> makeAIInterpreterCall(CallRequest callRequest)

Used to make/place an AI Interpreter call in Boostlingo. The call uses the Twilio Voice audio path; the remote interlocutor is the Boostlingo AI Interpreter. The returned BLAICall exposes the AI-specific controls on top of the standard BLVoiceCall surface. The AI flag is set internally; callers do not need to mutate the request themselves.

Link copied to clipboard
public final Single<BLVideoCall> makeVideoCall(CallRequest callRequest, VideoView localVideoView)

Used to make/place a Video Call in Boostlingo.

Link copied to clipboard
public final Single<BLVoiceCall> makeVoiceCall(CallRequest callRequest)

Used to make/place a Voice Call in Boostlingo.

Link copied to clipboard
public final Single<ChatMessage> sendChatMessage(String text)

Sends the text specified as a chat message to interpreter.

Link copied to clipboard
public final Completable validateCallReq(CallRequest callRequest)

Validates the call request is appropriate to start a call. Can be called directly, but it is always called when making video/voice calls.