ToolsConfigurationBuilderObjcAdapter

@available(iOS 12.0, *)
@objc(BDKToolsConfigurationBuilder)
public class ToolsConfigurationBuilderObjcAdapter : NSObject

A builder that helps creating the configuration for the Kaleyra Video SDK collaborative tools

This object helps you setting up the Kaleyra Video SDK tools guiding you in this process with a fluent interface. Let’s pretend you want to setup the SDK with the following tools:

  • Whiteboard: enabled with upload disabled
  • File share: enabled
  • Chat: enabled
  • In-app screen sharing: enabled
  • Broadcast screen sharing: disabled
 BDKConfig *config = BDKConfigBuilder.create(@"My app id", BDKEnvironmentSandbox, BDKRegionIndia)
                                     .tools(^(BDKToolsConfigurationBuilder *tools){
                                              tools.whiteboardWithUploadDisabled()
                                                   .fileshare()
                                                   .chat()
                                                   .inAppScreensharing()
                                     })
                                     .build()

Remark

This builder is suited for Objective-ccode. If your application is written in Swift, you should use the ToolsConfigurationBuilder instead.
  • Call this block when you want to enable the whiteboard tool with its upload tool enabled.

    Declaration

    Swift

    @objc
    public var whiteboard: () -> ToolsConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to enable the whiteboard tool but you want to disable its upload tool.

    Declaration

    Swift

    @objc
    public var whiteboardWithUploadDisabled: () -> ToolsConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to enable the file share tool.

    Declaration

    Swift

    @objc
    public var fileshare: () -> ToolsConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to enable the in-app screen share tool.

    Declaration

    Swift

    @objc
    public var inAppScreensharing: () -> ToolsConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to enable the broadcast screen share tool.

    The block expects a two string as parameters. The first one is the your appGroupIdentifier the second one is the bundle identifier of your broadcast upload extension.

    Declaration

    Swift

    @objc
    public var broadcastScreensharing: (String, String) -> ToolsConfigurationBuilderObjcAdapter { get }
  • Call this block when you want to enable the chat tool.

    Declaration

    Swift

    @objc
    public var chat: () -> ToolsConfigurationBuilderObjcAdapter { get }