Config

@available(iOS 12.0, *)
@objc(BDKConfig)
public class Config : NSObject

A class encapsulating the configuration options for the Kaleyra Video SDK.

You are required to configure the Kaleyra Video SDK providing it a Config object before the SDK can be used. You create this object using the ConfigBuilder object.

  • The appID identifying your app in the region and in the environment provided.

    Declaration

    Swift

    @objc
    public let appID: String
  • The global region where user’s data will be conserved and managed.

    Declaration

    Swift

    @objc
    public let region: Bandyer.Region
  • The Kaleyra Video back-end environment where the SDK will connect to (e.g production, sandbox, and so on…)

    Declaration

    Swift

    @objc
    public let environment: Bandyer.Environment
  • A configuration object holding the CallKit configuration.

    Declaration

    Swift

    @objc
    public let callKit: CallKitConfiguration
  • A configuration object holding VoIP push notification configuration.

    Declaration

    Swift

    @objc
    public let voip: VoIPPushConfiguration
  • A configuration object holding the SDK tools configuration.

    Declaration

    Swift

    @objc
    public let tools: ToolsConfiguration
  • A configuration object holding the SDK camera configuration.

    Declaration

    Swift

    @objc
    public let camera: CameraConfiguration
  • The strategy the SDK will use to override the audio output to the speaker when a call starts. The option provided will be used only when the app is running on devices mounting an ear speaker and a loud speaker (iPhones). On devices not supporting ear speaker (iPads) this option has no effect.

    Declaration

    Swift

    @objc
    public let speakerHijackingStrategy: SpeakerHijackingStrategy
  • A boolean flag indicating whether the SDK should listen for incoming calls coming from the WebSocket connection.

    Declaration

    Swift

    @objc
    public let shouldListenForDirectIncomingCalls: Bool