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

Functions

Link copied to clipboard
public final Unit dispose()

Disposes all the resources taken by the SDK.

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<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<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.

Properties

Link copied to clipboard
private final Observable<BLCallEvent> callEventObservable

Observable that provides BLCall events.