TwilioVerifyBuilder
public class TwilioVerifyBuilder
Builder class that builds an instance of TwilioVerifyManager, which handles all the operations regarding Factors and Challenges
-
Creates a new instance of TwilioVerifyBuilder
Declaration
Swift
public init() -
Set the NetworkProvider that will be used by the
TwilioVerifyinstance.Declaration
Swift
public func setNetworkProvider(_ networkProvider: NetworkProvider) -> SelfParameters
networkProviderinstance of a
NetworkProvider -
Defines if the storage will be cleared after a reinstall
Declaration
Swift
public func setClearStorageOnReinstall(_ clearStorageOnReinstall: Bool) -> SelfParameters
clearStorageOnReinstallIf true, the storage will be cleared after a reinstall, so created factors will not exist in the device anymore. If false, created factors will persist in the device. Default value is true
-
Set the accessGroup that will be used for the Keychain storage.
Declaration
Swift
public func setAccessGroup(_ accessGroup: String?) -> SelfParameters
accessGroupUsed to specify the access group for the kSecAttrAccessGroup of the KeyChain. if
nilthe data will be only available in the app, otherwise using a KeyChain group will enable the option to access data from service extensions. -
Enables the default logger
Declaration
Swift
public func enableDefaultLoggingService(withLevel level: LogLevel) -> SelfParameters
levelDesired level of logging
-
Adds a custom Logging Service
Declaration
Swift
public func addLoggingService(_ service: LoggerService) -> SelfParameters
serviceCustom logging service to be used to log information
-
Buids an instance of TwilioVerifyManager
Throws
TwilioVerifyError.initializationErrorif an error occurred while initializing.Declaration
Swift
public func build() throws -> TwilioVerifyReturn Value
An instance of
TwilioVerify.
TwilioVerifyBuilder Class Reference