ConfigurationStore
public class ConfigurationStore
The entry point of NUGU SDKs.
Application should configure ConfigurationStore
using configure()
, configure(url:)
or configure(configuration:)
-
Configure with
Configuration
Declaration
Swift
public func configure(configuration: Configuration)
-
Configure with specific
url
Declaration
Swift
public func configure(url: URL)
-
Configure with
nugu-config.plist
inBundle.main
Declaration
Swift
public func configure()
-
Determine whether the
url
isConfiguration.serviceWebRedirectUri
.Declaration
Swift
func isServiceWebRedirectUrl(url: URL) -> Bool
-
Determine whether the
url
isConfiguration.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
completion
The 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
completion
The 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
completion
The 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
completion
The closure to receive result.