Type Aliases
The following type aliases are available globally.
-
Closure that is used in defining push (client to server) replication filters
When properly configured, during push replication this closure will be called to determine if a document should be replicated to the server.
The code should evaluate the provided document, and return true to replicate it to the server.
Declaration
Swift
public typealias PushReplicationFilter = (_ properties: [String : Any]?, _ filterParameters: [AnyHashable : Any]?) -> (Bool)
Parameters
properties
the properties of the document currently under evaluation
filterParameters
the filter parameters provided when replication filtering was configured, if any.
-
Callback closure used during authentication to provide username and password during execution of:
ProvideCredentialsAuthenticationHandlerDelegate.authenticationHandler(, provideCredentialsWithCompletionHandler)
See also:
ProvideCredentialsAuthenticationHandlerDelegate
See also
ProvideCredentialsAuthenticationHandlerDelegate
Declaration
Swift
public typealias AuthenticationCredentialsProvider = (_ userName: String, _ password: String) -> Void
Parameters
userName
name of the user
password
the user’s password
-
Authentication handlers that rely on calling an external service to validate authentication credentials will support this delegate to handle gathering the user’s credentials, altering the user if those credentials were not valid, and to pass information about any service call failures failures to the user.
Declaration
Swift
public typealias ServiceBasedAuthenticationHandlerDelegate = ProvideCredentialsAuthenticationHandlerDelegate & FailableAuthenticationHandlerDelegate