Collection
extension Collection where 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 givenkey
. -
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 givenidentifier
. -
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
, ornil
when there is no configuration having the givenkey
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 theapplication(withKey:)
overload.key
The key of the configuration to use.
Return Value
An application initialized with the first configuration having the given
key
, ornil
when there is no configuration having the givenkey
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
, ornil
when there is no configuration having the givenidentifier
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 theapplication(withKey:)
overload.identifier
The identifier of the configuration to use.
Return Value
An application initialized with the first configuration having the given
identifier
, ornil
when there is no configuration having the givenidentifier
or when an application could not be initialized with that configuration.