Aller au contenu principal

SDK entry point (init and connect)

Use AzeooSDK.init(...) to create the SDK instance, then connect(userId, token, completion) to attach a user. Alternatively use the Pigeon API (AzeooClientApiFromEngine) with initialize and connect as in the Quick Start.

init

Initialize the SDK with API key, config, theme, deep links, and safe area. Returns the AzeooSDK instance. Store it (e.g. AzeooSDK.shared) and call connect when the user is authenticated.

connect

func connect(userId: String, token: String, completion: @escaping (Result<AzeooUserProfile, Error>) -> Void)

Attaches an authenticated user. Required before using modules or user API.

disconnect

Clears the current user. SDK remains initialized; you can connect again.

Next steps