Alipay+ DocsAlipay+ Docs

getCurrentRegion​

The getCurrentRegion API is used by the MPP app to get the user's current region.

Method signature

copy
- (nullable NSString *)getCurrentRegion;

Response parameters

Type

Length

Description

Required

NSString

/

The user's current region that is obtained based on time zone. Note that the user's region may not be obtained in rare cases, for example, the time zone is newly added, which does not exist in the mapping table.

O

Sample

copy
NSString *region = [[MPPAlipayPlusClient shared] getCurrentRegion];