nutrition_ai
library
Classes
BarcodeCandidate
Data class that represents the results of the barcode detection process.
DetectedCandidate
Class that represents the results of the food detection process.
Error <T >
A final class representing an error result of an operation.
FoodCandidates
Data class that represents the results of the SDK's detection process.
FoodDetectionConfiguration
Configuration object used to define a recognition session.
FoodRecognitionListener
Used as a callback to receive results from analyzing camera frames.
InflammatoryEffectData
Represents a nutrient associated with an inflammatory effect score.
NutritionAdvisor
A singleton class that provides access to the Nutrition AI Advisor API.
NutritionAI
Singleton class to interact with NutritionAI SDK.
NutritionFactsRecognitionListener
Interface for listening to nutrition facts recognition events.
PackagedFoodCandidate
Represents the result of the packaged food detection process.
PassioAccountListener
An abstract interface class for listening to updates on token budgets.
PassioAdvisorFoodInfo
Represents information about a food item recognized by the Passio Advisor.
PassioAdvisorResponse
Represents the response from the Passio Advisor.
PassioCameraZoomLevel
This class represents the camera zoom levels, including minimum and maximum values.
PassioConfiguration
A PassioConfiguration object must be constructed to configure the SDK. The
configuration process depends on the location of the files needed for the
SDK to work. There are three different ways to configure the SDK depending
on the attributes of the object.
PassioFoodAmount
Represents the amount of a food item, including selected quantity and unit, serving sizes, and serving units.
PassioFoodDataInfo
A class representing detailed information about a food item.
PassioFoodIcons
The defaultIcon represents one of five predefined icons shipped with the
SDK, base on the food item's PassioIDEntityType .
PassioFoodItem
Represents a food item with its details, amount, ingredients, and nutritional information.
PassioFoodMetadata
Represents metadata associated with a particular food item.
PassioFoodOrigin
The origin of the data for a given food item of the nutritional database.
PassioIcon
PassioIngredient
Represents an ingredient within a food item, including its amount, metadata,
name, and reference nutrients.
PassioMealPlan
Class representing a meal plan.
PassioMealPlanItem
Class representing a meal plan item.
PassioNutrients
Represents the nutritional information of a food item, including various nutrients
and their quantities.
PassioNutritionFacts
A class representing the nutritional facts of a food item.
PassioPreview
Widget that is used to display the camera preview and the frames being
processed by the NutritionAI SDK.
PassioResult <T >
A sealed class representing the result of an operation, which can either be a success or an error.
PassioSearchNutritionPreview
Represents a preview of the nutritional information for a food item,
PassioSearchResponse
Represents the response from a food search API, containing search results
and alternate names for the searched food item.
PassioServingSize
Data class that represents the serving sizes of a food item.
PassioServingUnit
Data class that represents the serving unit of a food item.
PassioSpeechRecognitionModel
Represents a speech recognition model.
PassioStatus
Object that is returned as a result of the configuration process.
PassioStatusListener
PassioTokenBudget
This class holds information about the API name, the budget cap,
the tokens used in a certain period, and the total usage for that period.
PassioUPFRating
Represents the ultra-processing food rating (UPF rating) of a food item.
PlatformImage
Native representation of an image.
Success <T >
A final class representing a successful result of an operation.
Unit
Base class used to create units for mass, energy, etc.
UnitEnergy
Class that represents a measurement of energy.
UnitIU
Class that represents a measurement of IU.
UnitMass
Class that represents a measurement of mass.