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