Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SinchClientBuilder

The SinchClientBuilder class builds a new SinchClient instance.

To construct a SinchClient, the required configuration parameters are:

  • Application Key
  • Environment host
  • UserID

It is optional to specify:

  • CLI (Calling-Line Identifier / Caller-ID) that will be used for calls terminated to PSTN (Publicly Switched Telephone Network).
  • hmsDeviceToken & hmsApplicationId if Huawei Push is to be used.

Hierarchy

  • SinchClientBuilder

Index

Methods

  • Sets the application key associated with the SinchClient.

    Parameters

    • applicationKey: string

      Must not be null.

    Returns SinchClientBuilder

    The SinchClientBuilder instance.

  • Creates the resulting SinchClient.

    Returns SinchClient

    A new SinchClient instance.

  • Sets the caller identifier used when calling with PSTN.

    Parameters

    • callerIdentifier: string

      Optional, must not be null

    Returns SinchClientBuilder

    The SinchClientBuilder instance.

  • Sets the environment host associated with the SinchClient.

    Parameters

    • environmentHost: string

      Must not be null.

    Returns SinchClientBuilder

    The SinchClientBuilder instance.

  • fetchApi(api: (input: RequestInfo, init?: RequestInit) => Promise<Response>): SinchClientBuilder
  • Sets the fetch api to be used by rest request. If not set the standard FetchApi will be used.

    Parameters

    • api: (input: RequestInfo, init?: RequestInit) => Promise<Response>
        • (input: RequestInfo, init?: RequestInit): Promise<Response>
        • Parameters

          • input: RequestInfo
          • Optional init: RequestInit

          Returns Promise<Response>

    Returns SinchClientBuilder

    The SinchClientBuilder instance.

  • Overide internal creation of the local MediaStream.

    Parameters

    Returns SinchClientBuilder

    The SinchClientBuilder instance.

  • Sets the user id associated with the SinchClient.

    Parameters

    • userId: string

      Must not be null.

    Returns SinchClientBuilder

    The SinchClientBuilder instance.

  • Overide internal creation of the local MediaStream.

    Parameters

    • videoConfiguration: MediaTrackConstraints

      constraints for video

    Returns SinchClientBuilder

    The SinchClientBuilder instance.

Generated using TypeDoc