Config

public struct Config

A configuration for the shared Stream Client.

  • Setup a configuration for the shared Stream Client.

    Declaration

    Swift

    public init(apiKey: String,
                appId: String,
                baseURL: BaseURL = BaseURL(),
                callbackQueue: DispatchQueue = .main,
                logsEnabled: Bool = false)

    Parameters

    apiKey

    the Stream API key

    appId

    the Stream APP id

    baseURL

    the client URL

    callbackQueue

    a callback queue for completion requests.

    logsEnabled

    if enabled the client will show logs for requests.