getStorefrontLocaleWith
fun Purchases.getStorefrontLocaleWith(onError: (<Error class: unknown class>) -> Unit = ON_ERROR_STUB, onSuccess: (storefrontLocale: Locale) -> Unit)
This method will try to obtain the Store (Google/Amazon) locale. Note: this locale only has a region set. If there is any error, it will return null and log said error.
Not supported for the Galaxy Store. Invocations for the Galaxy Store will always return an error.
Parameters
onSuccess
Will be called after the call has completed.
onError
Will be called after the call has completed with an error.