Collection

extension Collection where Element == WebcomConfiguration

Element == WebcomConfiguration

  • The first configuration of this collection.

    Declaration

    Swift

    public var defaultConfiguration: WebcomConfiguration? { get }
  • Returns the first configuration of this collection having the given key.

    Declaration

    Swift

    public func configuration(withKey key: String) -> WebcomConfiguration?

    Parameters

    key

    The key of the configuration to retrieve.

    Return Value

    The retrieved configuration or nil when there is no configuration having the given key.

  • Returns the first configuration of this collection having the given identifier.

    Declaration

    Swift

    public func configuration(withIdentifier identifier: String) -> WebcomConfiguration?

    Parameters

    identifier

    The identifier of the configuration to retrieve.

    Return Value

    The retrieved configuration or nil when there is no configuration having the given identifier.

  • An application initialized with the first configuration.

    This property is nil when there is no configuration or when an application could be initialized with that configuration.

    Declaration

    Swift

    public var defaultApplication: WebcomApplication? { get }
  • Creates an application with the first configuration having the given key.

    The returned application has all services available, whether they require the JavaScript API or not.

    Declaration

    Swift

    public func application(withKey key: String) -> WebcomApplication?

    Parameters

    key

    The key of the configuration to use.

    Return Value

    An application initialized with the first configuration having the given key, or nil when there is no configuration having the given key or when an application could not be initialized with that configuration.

  • Creates an application with the first configuration having the given key.

    The returned application has only services not requiring the JavaScript API available.

    Declaration

    Swift

    public func application(_ marker: WebcomMarkers.NoJavaScriptAPI, withKey key: String) -> WebcomApplication?

    Parameters

    marker

    Use the WebcomMarkers.NoJavaScriptAPI.noJavaScriptAPI value to disambiguate with the application(withKey:) overload.

    key

    The key of the configuration to use.

    Return Value

    An application initialized with the first configuration having the given key, or nil when there is no configuration having the given key or when an application could not be initialized with that configuration.

  • Creates an application with the first configuration having the given identifier.

    The returned application has all services available, whether they require the JavaScript API or not.

    Declaration

    Swift

    public func application(withIdentifier identifier: String) -> WebcomApplication?

    Parameters

    identifier

    The identifier of the configuration to use.

    Return Value

    An application initialized with the first configuration having the given identifier, or nil when there is no configuration having the given identifier or when an application could not be initialized with that configuration.

  • Creates an application with the first configuration having the given identifier.

    The returned application has all services available, whether they require the JavaScript API or not.

    Declaration

    Swift

    public func application(_ marker: WebcomMarkers.NoJavaScriptAPI, withIdentifier identifier: String) -> WebcomApplication?

    Parameters

    marker

    Use the WebcomMarkers.NoJavaScriptAPI.noJavaScriptAPI value to disambiguate with the application(withKey:) overload.

    identifier

    The identifier of the configuration to use.

    Return Value

    An application initialized with the first configuration having the given identifier, or nil when there is no configuration having the given identifier or when an application could not be initialized with that configuration.