Lines Matching refs:function
5 APIs in **@ohos.geolocation.d.ts** do not support throwing error codes. To support this function, a…
22 | geolocation | method | function on(type: 'locationChange', request: LocationRequest, callback:…
23 | geolocation | method | function off(type: 'locationChange', callback?: Callback<Location>): vo…
24 | geolocation | method | function on(type: 'locationServiceState', callback: Callback<boolean>):…
25 | geolocation | method | function off(type: 'locationServiceState', callback?: Callback<boolean>…
26 | geolocation | method | function on(type: 'cachedGnssLocationsReporting', request: CachedGnssLo…
27 | geolocation | method | function off(type: 'cachedGnssLocationsReporting', callback?: Callback<…
28 | geolocation | method | function on(type: 'gnssStatusChange', callback: Callback<SatelliteStatu…
29 | geolocation | method | function off(type: 'gnssStatusChange', callback?: Callback<SatelliteSta…
30 | geolocation | method | function on(type: 'nmeaMessageChange', callback: Callback<string>): voi…
31 | geolocation | method | function off(type: 'nmeaMessageChange', callback?: Callback<string>): v…
32 | geolocation | method | function on(type: 'fenceStatusChange', request: GeofenceRequest, want: …
33 | geolocation | method | function off(type: 'fenceStatusChange', request: GeofenceRequest, want:…
34 | geolocation | method | function getCurrentLocation(request: CurrentLocationRequest, callback: …
35 | geolocation | method | function getCurrentLocation(callback: AsyncCallback<Location>): void; |…
36 | geolocation | method | function getCurrentLocation(request?: CurrentLocationRequest): Promise<…
37 … | function getLastLocation(callback: AsyncCallback<Location>): void; | Migrated to **@ohos.geo…
38 …hod | function getLastLocation(): Promise<Location>; | Migrated to **@ohos.geoLoc…
39 … | function isLocationEnabled(callback: AsyncCallback<boolean>): void; | Migrated to **@ohos.ge…
40 …hod | function isLocationEnabled(): Promise<boolean>; | Migrated to **@ohos.geoLoc…
41 | geolocation | method | function requestEnableLocation(callback: AsyncCallback<boolean>): void;…
42 | geolocation | method | function requestEnableLocation(): Promise<boolean>; | Deleted.…
43 | geolocation | method | function enableLocation(callback: AsyncCallback<boolean>): void; | Migr…
44 | geolocation | method | function enableLocation(): Promise<boolean>; | Migrated…
45 …d | function disableLocation(callback: AsyncCallback<boolean>): void; | Migrated to **@ohos.geo…
46 …hod | function disableLocation(): Promise<boolean>; | Migrated to **@ohos.geoLoc…
47 | geolocation | method | function getAddressesFromLocation(request: ReverseGeoCodeRequest, callb…
48 | geolocation | method | function getAddressesFromLocation(request: ReverseGeoCodeRequest): Prom…
49 | geolocation | method | function getAddressesFromLocationName(request: GeoCodeRequest, callback…
50 | geolocation | method | function getAddressesFromLocationName(request: GeoCodeRequest): Promise…
51 … | function isGeoServiceAvailable(callback: AsyncCallback<boolean>): void; | Migrated to **@ohos.…
52 …hod | function isGeoServiceAvailable(): Promise<boolean>; | Migrated to **@ohos.geoLoc…
53 | geolocation | method | function getCachedGnssLocationsSize(callback: AsyncCallback<number>): v…
54 | geolocation | method | function getCachedGnssLocationsSize(): Promise<number>; | Migrated…
55 | geolocation | method | function flushCachedGnssLocations(callback: AsyncCallback<boolean>): vo…
56 | geolocation | method | function flushCachedGnssLocations(): Promise<boolean>; | Migrated…
57 | geolocation | method | function sendCommand(command: LocationCommand, callback: AsyncCallback<…
58 | geolocation | method | function sendCommand(command: LocationCommand): Promise<boolean>; | Mig…
59 …d | function enableLocationMock(callback: AsyncCallback<void>): void; | Migrated to **@ohos.geo…
60 …hod | function enableLocationMock(): Promise<void>; | Migrated to **@ohos.geoLoc…
61 … | function disableLocationMock(callback: AsyncCallback<void>): void; | Migrated to **@ohos.geo…
62 …hod | function disableLocationMock(): Promise<void>; | Migrated to **@ohos.geoLoc…
63 …function setMockedLocations(config: LocationMockConfig, callback: AsyncCallback<void>): void; | Mi…
64 … | function setMockedLocations(config: LocationMockConfig): Promise<void>; | Migrated to **@ohos.…
65 … | function enableReverseGeocodingMock(callback: AsyncCallback<void>): void; | Migrated to **@ohos…
66 …hod | function enableReverseGeocodingMock(): Promise<void>; | Migrated to **@ohos.geoLoc…
67 …| function disableReverseGeocodingMock(callback: AsyncCallback<void>): void; | Migrated to **@ohos…
68 …hod | function disableReverseGeocodingMock(): Promise<void>; | Migrated to **@ohos.geoLoc…
69 …function setReverseGeocodingMockInfo(mockInfos: Array<ReverseGeocodingMockInfo>, callback: AsyncCa…
70 …function setReverseGeocodingMockInfo(mockInfos: Array<ReverseGeocodingMockInfo>): Promise<void>; |…
71 …function isLocationPrivacyConfirmed(type: LocationPrivacyType, callback: AsyncCallback<boolean>): …
72 …function isLocationPrivacyConfirmed(type: LocationPrivacyType,): Promise<boolean>; | Migrated to *…
73 …function setLocationPrivacyConfirmStatus(type: LocationPrivacyType, isConfirmed: boolean, callback…
74 …function setLocationPrivacyConfirmStatus(type: LocationPrivacyType, isConfirmed: boolean): Promise…