DaVinci
extension DaVinci
-
Method to create a DaVinci instance.
Declaration
Swift
public static func createDaVinci(block: @Sendable (DaVinciConfig) -> Void = {_ in }) -> DaVinciParameters
blockThe configuration block.
Return Value
The DaVinci instance.
-
user()AsynchronousRetrieve the user. This method is now Deprecated. Please call
daVinciUser()directly Callinguser()instead might cause issues when both DaVinci and the Journey module is used If cookies are available, it prepares a new user and returns it. If no user is found and no cookies are available, it returns nil.Declaration
Swift
@available(*, deprecated) public func user() async -> User?Return Value
The user if found, otherwise nil.
-
daVinciUser()AsynchronousRetrieve the user. If cookies are available, it prepares a new user and returns it. If no user is found and no cookies are available, it returns nil.
Declaration
Swift
public func daVinciUser() async -> User?Return Value
The user if found, otherwise nil.
View on GitHub