onCountrySelectResult

Requires:
BizKit≥3.0.0@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
import { onCountrySelectResult } from '@ray-js/ray';

// Promise usage
try {
  const res = await onCountrySelectResult({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

Method signature
onCountrySelectResult(listener: )
Minimum SDK versions
iOSThingSmartBizKitBizBundle
≥ 5.2.1
Androidcom.thingclips.smart:thingsmart-bizbundle-bizkit
≥ 5.2.0

Description

Listen for selection results from the country selection page

Parameters

ParameterTypeRequiredDescription
(params: ) => voidYes

Return Value

None

Examples

import { onCountrySelectResult, openCountrySelectPage } from '@ray-js/ray'

onCountrySelectResult(e => {
  console.log('[event]', e);
});

openCountrySelectPage({
  success: data => {
    console.log('[open]', data);
  },
  fail: error => {
    console.error('[open]', error);
  },
});