Get the current region language and country.
#include <bps/region.h>
BPS_API int region_get(char **language,
char **country)
BlackBerry 10.0.0
The current region language.
The current region country.
The region_get() function gets the current region language and country that is set on the device. Upon success, the caller is responsible for freeing all buffers that are returned using bps_free().
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.