Skip to main content
All API requests in GlobalEMobileSDK are async. To correctly display data from the result of an API call, use the progress bar, activity indicator, etc.
iOS Initialization and Setup
Import GlobalEMobileSDK
Examples: getCountriesList method:
getCurrenciesList method:
● Price calculation method: DefaultCountry object with selected country info. Get this object from updateCurrentCountryInfo or getCurrentCountryInfo methods.
  • Implement a calculation method:
Android Initialization and Setup
Initialize SDK in your Application class
Example:
Examples of different methods: getCountriesList method (Coroutines):
getCurrenciesList method:
DefaultCountry object with selected country info. Get this object from updateCurrentCountryInfo or getCurrentCountryInfo methods. getCurrentCountryInfo method:
calculatePrice method (Coroutines):
To implement the calculation method in the list:
An example of how to correctly calculate the total price:
The incorrect way to calculate the price:
Additional information for RX users: https://github.com/Kotlin/kotlinx.coroutines/tree/master/reactive/kotlinx-coroutines-rx2