Skip to main content

SDK entry point (init and connect)

Use AzeooSDK.initialize(...) to create the SDK instance, then connectUser(token:gender:height:weight:completion:) to attach a user.

initialize

Initialize the SDK with API key, config, theme, deep links, safe area (and optional connector).
The completion returns the AzeooSDK instance. Store it (or use AzeooSDK.shared) and call connectUser when the user token is available.

connectUser

func connectUser(
token: String,
gender: String,
height: AzeooHeight,
weight: AzeooWeight,
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 call connectUser again.

Next steps