Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

 Some OEMs create dual-language devices where the user can change which language is set i.e. French<->German etc.

The current language can be determined from IShell_GetDeviceInfo(), but how is it possible to know if the user changes the language? Its unfeasible to continually call IShell_GetDeviceInfo(),  on the off-chance maybe its contents have changed.

Is there some notification that can be registered for if device info has changed?

 

 

For getting notification of language change, you may use ISHELL_RegisterSystemCallback() for AEE_SCB_DEVICE_INFO_CHANGED. The callback you register will be invoked whenever the language changes. More reference for this can be found here: https://developer.brewmp.com/reference/api/brew-mp-102/ishellregistersys....

For getting notification of language change, you may use ISHELL_RegisterSystemCallback() for AEE_SCB_DEVICE_INFO_CHANGED. The callback you register will be invoked whenever the language changes. More reference for this can be found here: https://developer.brewmp.com/reference/api/brew-mp-102/ishellregistersys....

Thanks, is there a way of updating the device info settings on the simulator to test this?

Thanks, is there a way of updating the device info settings on the simulator to test this?

There is a sample app provided in the SDK (c_localizedapp) that will set the language between English and Spanish. The source code is provided as well in case you like to extend it to support additional languages.

There is a sample app provided in the SDK (c_localizedapp) that will set the language between English and Spanish. The source code is provided as well in case you like to extend it to support additional languages.