getCountryCodeForRegion static method

int getCountryCodeForRegion(
  1. String regionCode
)

Implementation

static int getCountryCodeForRegion(String regionCode) {
  final activationFactory =
      CreateActivationFactory(_className, IID_IPhoneNumberFormatterStatics);

  try {
    return IPhoneNumberFormatterStatics.fromRawPointer(activationFactory)
        .getCountryCodeForRegion(regionCode);
  } finally {
    free(activationFactory);
  }
}