/ohos5.0/base/location/interfaces/inner_api/include/ |
H A D | country_code.h | 28 class CountryCode : public Parcelable { 30 CountryCode() in CountryCode() function 36 explicit CountryCode(CountryCode& country) in CountryCode() function 42 ~CountryCode() override = default; 44 inline bool IsSame(CountryCode& country) const in IsSame() 87 static std::shared_ptr<CountryCode> Unmarshalling(Parcel& parcel) in Unmarshalling() 89 auto country = std::make_shared<CountryCode>(); in Unmarshalling()
|
H A D | country_code_manager.h | 39 std::shared_ptr<CountryCode> GetIsoCountryCode(); 82 std::shared_ptr<CountryCode> lastCountryByLocation_; 83 std::shared_ptr<CountryCode> lastCountry_;
|
H A D | i_country_code_callback.h | 36 virtual void OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) = 0;
|
H A D | locator.h | 70 virtual std::shared_ptr<CountryCode> GetIsoCountryCode() = 0; 107 virtual LocationErrCode GetIsoCountryCodeV9(std::shared_ptr<CountryCode>& countryCode) = 0;
|
H A D | locator_impl.h | 252 std::shared_ptr<CountryCode> GetIsoCountryCode(); 519 LocationErrCode GetIsoCountryCodeV9(std::shared_ptr<CountryCode>& countryCode);
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta2/ |
H A D | js-apidiff-geolocation.md | 13 | ohos.geolocation | CountryCode | type: CountryCodeType; | 新增 | 14 | ohos.geolocation | CountryCode | country: string; | 新增 | 29 …n | getCountryCode(callback: AsyncCallback\<CountryCode>) : void;<br>getCountryCode() : Promise\<C… 30 | ohos.geolocation | geolocation | off(type: 'countryCodeChange', callback?: Callback\<CountryCode>… 31 | ohos.geolocation | geolocation | on(type: 'countryCodeChange', callback: Callback\<CountryCode>) …
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta2/ |
H A D | js-apidiff-geolocation.md | 13 | ohos.geolocation | CountryCode | type: CountryCodeType; | Added| 14 | ohos.geolocation | CountryCode | country: string; | Added| 29 …n | getCountryCode(callback: AsyncCallback\<CountryCode>) : void;<br>getCountryCode() : Promise\<C… 30 | ohos.geolocation | geolocation | off(type: 'countryCodeChange', callback?: Callback\<CountryCode>… 31 | ohos.geolocation | geolocation | on(type: 'countryCodeChange', callback: Callback\<CountryCode>) …
|
/ohos5.0/base/location/frameworks/native/locator_sdk/source/ |
H A D | country_code_callback_host.cpp | 32 auto countryCodePtr = CountryCode::Unmarshalling(data); in OnRemoteRequest() 44 void CountryCodeCallbackHost::OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) in OnCountryCodeChange()
|
H A D | country_code_manager.cpp | 43 lastCountryByLocation_ = std::make_shared<CountryCode>(); in CountryCodeManager() 44 lastCountry_ = std::make_shared<CountryCode>(); in CountryCodeManager() 61 auto country = std::make_shared<CountryCode>(*lastCountry_); in NotifyAllListener() 213 std::shared_ptr<CountryCode> CountryCodeManager::GetIsoCountryCode() in GetIsoCountryCode() 248 CountryCode country; in GetIsoCountryCode() 346 CountryCode country; in OnLocationReport()
|
/ohos5.0/base/location/frameworks/js/napi/include/ |
H A D | country_code_callback_napi.h | 36 void OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) override; 37 bool Send(const std::shared_ptr<CountryCode>& country);
|
H A D | napi_util.h | 80 void CountryCodeToJs(const napi_env& env, const std::shared_ptr<CountryCode>& country, napi_value& …
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.8.3/ |
H A D | changelogs-geolocation.md | 27 |geolocation | interface | export interface CountryCode | API9接口变更,迁移到@ohos.geoLocationManager.d.… 33 |geolocation| method | function on(type: 'countryCodeChange', callback: Callback<CountryCode>… 34 |geolocation| method | function off(type: 'countryCodeChange', callback?: Callback<CountryCode&g… 35 |geolocation| method | function getCountryCode(callback: AsyncCallback<CountryCode>): void; |… 36 |geolocation| method | function getCountryCode(): Promise<CountryCode>; | API9接口变更,迁移到@ohos.g…
|
/ohos5.0/base/location/frameworks/js/napi/source/ |
H A D | country_code_callback_napi.cpp | 50 auto countryCodePtr = CountryCode::Unmarshalling(data); in OnRemoteRequest() 83 bool CountryCodeCallbackNapi::Send(const std::shared_ptr<CountryCode>& country) in Send() 183 void CountryCodeCallbackNapi::OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) in OnCountryCodeChange()
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.8.3/ |
H A D | changelogs-geolocation.md | 27 |geolocation | interface | export interface CountryCode | Migrated this API in API version 9 to *… 33 |geolocation| method | function on(type: 'countryCodeChange', callback: Callback<CountryCode>… 34 |geolocation| method | function off(type: 'countryCodeChange', callback?: Callback<CountryCode&g… 35 |geolocation| method | function getCountryCode(callback: AsyncCallback<CountryCode>): void; |… 36 |geolocation| method | function getCountryCode(): Promise<CountryCode>; | Migrated this API i…
|
/ohos5.0/base/location/services/location_locator/callback/include/ |
H A D | country_code_callback_proxy.h | 31 void OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) override;
|
/ohos5.0/base/location/frameworks/native/locator_sdk/include/ |
H A D | country_code_callback_host.h | 29 void OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) override;
|
/ohos5.0/base/location/services/location_locator/callback/source/ |
H A D | country_code_callback_proxy.cpp | 30 void CountryCodeCallbackProxy::OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) in OnCountryCodeChange()
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta4/ |
H A D | js-apidiff-geolocation.md | 128 |新增|NA|模块名: ohos.geoLocationManager<br>类名: CountryCode|@ohos.geoLocationManager.d.ts| 129 |新增|NA|模块名: ohos.geoLocationManager<br>类名: CountryCode<br>方法名 or 属性名: country|@ohos.geoLocationMana… 130 |新增|NA|模块名: ohos.geoLocationManager<br>类名: CountryCode<br>方法名 or 属性名: type|@ohos.geoLocationManager… 166 |删除|模块名: ohos.geolocation<br>类名: CountryCode|NA|@ohos.geolocation.d.ts| 167 |删除|模块名: ohos.geolocation<br>类名: CountryCode<br>方法名 or 属性名:country|NA|@ohos.geolocation.d.ts| 168 |删除|模块名: ohos.geolocation<br>类名: CountryCode<br>方法名 or 属性名:type|NA|@ohos.geolocation.d.ts|
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/monthly-202210/ |
H A D | js-apidiff-geolocation.md | 128 |新增|NA|模块名: ohos.geoLocationManager<br>类名: CountryCode|@ohos.geoLocationManager.d.ts| 129 |新增|NA|模块名: ohos.geoLocationManager<br>类名: CountryCode<br>方法名 or 属性名: country|@ohos.geoLocationMana… 130 |新增|NA|模块名: ohos.geoLocationManager<br>类名: CountryCode<br>方法名 or 属性名: type|@ohos.geoLocationManager… 166 |删除|模块名: ohos.geolocation<br>类名: CountryCode|NA|@ohos.geolocation.d.ts| 167 |删除|模块名: ohos.geolocation<br>类名: CountryCode<br>方法名 or 属性名:country|NA|@ohos.geolocation.d.ts| 168 |删除|模块名: ohos.geolocation<br>类名: CountryCode<br>方法名 or 属性名:type|NA|@ohos.geolocation.d.ts|
|
/ohos5.0/base/location/test/location_locator/source/ |
H A D | country_code_manager_test.cpp | 33 countryCodeManager->lastCountryByLocation_ = std::make_shared<CountryCode>(); in TearDown() 34 countryCodeManager->lastCountry_ = std::make_shared<CountryCode>(); in TearDown()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-location-kit/ |
H A D | js-apis-geoLocationManager.md | 267 ## CountryCode section 1181 on(type: 'countryCodeChange', callback: Callback<CountryCode>): void 1192 | callback | Callback<[CountryCode](#countrycode)> | 是 | 回调函数,返回国家码信息。 | 1211 let callback = (code:geoLocationManager.CountryCode):void => { 1225 off(type: 'countryCodeChange', callback?: Callback<CountryCode>): void 1236 …| callback | Callback<[CountryCode](#countrycode)> | 否 | 需要取消订阅的回调函数。该回调函数需要与on接口传入的回调函数保持一致… 1254 let callback = (code:geoLocationManager.CountryCode):void => { 2043 getCountryCode(callback: AsyncCallback<CountryCode>): void 2053 | callback | AsyncCallback<[CountryCode](#countrycode)> | 是 | 回调函数,返回国家码信息。 | 2087 getCountryCode(): Promise<CountryCode> [all …]
|
/ohos5.0/docs/en/release-notes/api-diff/monthly-202210/ |
H A D | js-apidiff-geolocation.md | 128 |Added|NA|Module name: ohos.geoLocationManager<br>Class name: CountryCode|@ohos.geoLocationManager.… 129 |Added|NA|Module name: ohos.geoLocationManager<br>Class name: CountryCode<br>Method or attribute na… 130 |Added|NA|Module name: ohos.geoLocationManager<br>Class name: CountryCode<br>Method or attribute na… 166 |Deleted|Module name: ohos.geolocation<br>Class name: CountryCode|NA|@ohos.geolocation.d.ts| 167 |Deleted|Module name: ohos.geolocation<br>Class name: CountryCode<br>Method or attribute name: coun… 168 |Deleted|Module name: ohos.geolocation<br>Class name: CountryCode<br>Method or attribute name: type…
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta4/ |
H A D | js-apidiff-geolocation.md | 128 |Added|NA|Module name: ohos.geoLocationManager<br>Class name: CountryCode|@ohos.geoLocationManager.… 129 |Added|NA|Module name: ohos.geoLocationManager<br>Class name: CountryCode<br>Method or attribute na… 130 |Added|NA|Module name: ohos.geoLocationManager<br>Class name: CountryCode<br>Method or attribute na… 166 |Deleted|Module name: ohos.geolocation<br>Class name: CountryCode|NA|@ohos.geolocation.d.ts| 167 |Deleted|Module name: ohos.geolocation<br>Class name: CountryCode<br>Method or attribute name: coun… 168 |Deleted|Module name: ohos.geolocation<br>Class name: CountryCode<br>Method or attribute name: type…
|
/ohos5.0/base/location/test/fuzztest/locator/locator_fuzzer/ |
H A D | locator_fuzzer.cpp | 156 auto countryCodePtr = CountryCode::Unmarshalling(request); in CountryCodeCallbackHostFuzzerTest()
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta5/ |
H A D | js-apidiff-geolocation.md | 168 |起始版本有变化|类名:CountryCode<br>方法 or 属性:country: string;<br>起始版本:N/A|类名:CountryCode<br>方法 or 属性:country… 169 |起始版本有变化|类名:CountryCode<br>方法 or 属性:type: CountryCodeType;<br>起始版本:N/A|类名:CountryCode<br>方法 or 属性:t… 175 |新增(错误码)|NA|类名:geoLocationManager<br>方法 or 属性:function getCountryCode(): Promise<CountryCode>;<br>错…
|