ConfigurationStore
public class ConfigurationStore
The entry point of NUGU SDKs.
Application should configure ConfigurationStore using configure(), configure(url:) or configure(configuration:)
-
Configure with
ConfigurationDeclaration
Swift
public func configure(configuration: Configuration) -
Configure with specific
urlDeclaration
Swift
public func configure(url: URL) -
Configure with
nugu-config.plistinBundle.mainDeclaration
Swift
public func configure() -
Determine whether the
urlisConfiguration.serviceWebRedirectUri.Declaration
Swift
func isServiceWebRedirectUrl(url: URL) -> Bool -
Determine whether the
urlisConfiguration.authRedirectUri.Declaration
Swift
func isAuthorizationRedirectUrl(url: URL) -> Bool -
Get the web page url for the privacy policy.
Declaration
Swift
func privacyUrl(completion: @escaping (Result<String, Error>) -> Void)Parameters
completionThe closure to receive result.
-
Get the web page url for NUGU usage guide of own device
Declaration
Swift
func usageGuideUrl(deviceUniqueId: String, completion: @escaping (Result<String, Error>) -> Void)Parameters
completionThe closure to receive result.
-
Get the web page url to configure play settings for the user device.
Declaration
Swift
func serviceSettingUrl(completion: @escaping (Result<String, Error>) -> Void)Parameters
completionThe closure to receive result.
-
Get the web page url for the terms of service.
Declaration
Swift
func agreementUrl(completion: @escaping (Result<String, Error>) -> Void)Parameters
completionThe closure to receive result.
View on GitHub
ConfigurationStore Class Reference