Skip to content

Commit

Permalink
Merge pull request #2 from Passiolife/marinPassio-patch-2
Browse files Browse the repository at this point in the history
Update Migration from 2.x to 3.x SDK version.md
  • Loading branch information
marinPassio committed Mar 22, 2024
2 parents 6471991 + 23d5667 commit 6820e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Migration from 2.x to 3.x SDK version.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ b) Also, the interface ```FoodRecognitionListener``` might return multiple detec
* ```lookupIconFor``` has been deprecated, the correct function to use is ```lookupIconsFor```

## Search
* ```searchForFood``` now returns *PassioSearchResult* and a list of search options. The PassioSearchResult represent a specific food item associated with the search term, while search options provide a list of possible suggested search terms connected to the input term.
* ```searchForFood``` now returns list of *PassioSearchResult* and a list of search options. The PassioSearchResult represent a specific food item associated with the search term, while search options provide a list of possible suggested search terms connected to the input term.

```kotlin
data class PassioSearchResult(
Expand Down Expand Up @@ -196,4 +196,4 @@ private fun foodDataToIngredient(data: PassioFoodItemData): PassioIngredient {
}
```

<sup>Copyright 2023 Passio Inc</sup>
<sup>Copyright 2023 Passio Inc</sup>

0 comments on commit 6820e70

Please sign in to comment.