Collection<WebcomConfiguration>
extension Collection<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
keyThe key of the configuration to retrieve.
Return Value
The retrieved configuration or
nilwhen there is no configuration having the givenkey. -
Returns the first configuration of this collection having the given identifier.
Declaration
Swift
public func configuration(withIdentifier identifier: String) -> WebcomConfiguration?Parameters
identifierThe identifier of the configuration to retrieve.
Return Value
The retrieved configuration or
nilwhen there is no configuration having the givenidentifier. -
An application initialized with the first configuration.
This property is
nilwhen 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
keyThe key of the configuration to use.
Return Value
An application initialized with the first configuration having the given
key, ornilwhen there is no configuration having the givenkeyor 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
markerUse the
WebcomMarkers.NoJavaScriptAPI.noJavaScriptAPIvalue to disambiguate with theapplication(withKey:)overload.keyThe key of the configuration to use.
Return Value
An application initialized with the first configuration having the given
key, ornilwhen there is no configuration having the givenkeyor 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
identifierThe identifier of the configuration to use.
Return Value
An application initialized with the first configuration having the given
identifier, ornilwhen there is no configuration having the givenidentifieror 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
markerUse the
WebcomMarkers.NoJavaScriptAPI.noJavaScriptAPIvalue to disambiguate with theapplication(withKey:)overload.identifierThe identifier of the configuration to use.
Return Value
An application initialized with the first configuration having the given
identifier, ornilwhen there is no configuration having the givenidentifieror when an application could not be initialized with that configuration.