Skip to content

Passio SDK v2.3.13

Compare
Choose a tag to compare
@marinPassio marinPassio released this 15 Nov 18:20
· 12 commits to main since this release

V2.3.13

  • Add support for German language pack

Added APIs

  • New flag in the PassioConfiguration object called enableLanguagePack. If set to true, after SDK initializtion, if the phone locale is set to German will apply the German language pack. English is default.

  • Added new API to set the language of the food items from the nutritional database. If set to AUTO, the phone locale is chosen.

fun setSDKLanguage(
    context: Context,
    language: SDKLanguage,
    result: (languageSet: SDKLanguage?) -> Unit
)

enum class SDKLanguage(val code: String) {
    AUTO("auto"),
    EN("en"),
    DE("de"),
}