Skip to main content

Nutrition Module

Access via AzeooSDK.shared.modules.nutrition after connect. Use it to embed the nutrition UI or open specific screens.

Embedding

  • getFragment(bottomSafeArea = true) — Returns a Fragment to add to your layout.
  • getView(context, bottomSafeArea = true) — Returns a View for Compose or custom layouts.
  • ComposeView(bottomSafeArea) — Composable that embeds the nutrition UI.
MethodDescription
showDiary(dateTimestamp)Nutrition diary (date optional).
showPlans()Nutrition plans list.
showPlan(planId)Specific nutrition plan.
showUserPlan()User's current plan.
showRecipes()Recipes list.
showRecipe(recipeId, recipeName)Recipe details.
showScanner()Barcode scanner.
showMobileScanner()Mobile scanner.
showSearch()Food search.
showCart()Shopping cart.
showAddSelection(), showAddFood(), showAddMeal()Add food/meal flows.
showHome()Module home (alias for diary).

Example

AzeooSDK.shared.connect(userId, token) { result ->
result.onSuccess {
supportFragmentManager.beginTransaction()
.replace(R.id.container, AzeooSDK.shared.modules.nutrition.getFragment())
.commit()
// Or open a screen:
// AzeooSDK.shared.modules.nutrition.showDiary(null)
}
}

Next steps