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: Call…
23 |geolocation| method | function off(type: 'locationChange', callback?: Callback<Location>): void; |…
24 |geolocation| method | function on(type: 'locationServiceState', callback: Callback<boolean>): void…
25 |geolocation| method | function off(type: 'locationServiceState', callback?: Callback<boolean>): vo…
26 |geolocation| method | function on(type: 'cachedGnssLocationsReporting', request: CachedGnssLocatio…
27 |geolocation| method | function off(type: 'cachedGnssLocationsReporting', callback?: Callback<Array…
28 |geolocation| method | function on(type: 'gnssStatusChange', callback: Callback<SatelliteStatusInfo…
29 |geolocation| method | function off(type: 'gnssStatusChange', callback?: Callback<SatelliteStatusIn…
30 |geolocation| method | function on(type: 'nmeaMessageChange', callback: Callback<string>): void; | …
31 |geolocation| method | function off(type: 'nmeaMessageChange', callback?: Callback<string>): void; …
32 |geolocation| method | function on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantA…
33 |geolocation| method | function off(type: 'fenceStatusChange', request: GeofenceRequest, want: Want…
34 |geolocation| method | function getCurrentLocation(request: CurrentLocationRequest, callback: Async…
35 |geolocation| method | function getCurrentLocation(callback: AsyncCallback<Location>): void; | Migr…
36 |geolocation| method | function getCurrentLocation(request?: CurrentLocationRequest): Promise<Locat…
37 …hod | function getLastLocation(callback: AsyncCallback<Location>): void; | Migrated to **@ohos.geo…
38 …ation| method | function getLastLocation(): Promise<Location>; | Migrated to **@ohos.geoLocationMa…
39 …hod | function isLocationEnabled(callback: AsyncCallback<boolean>): void; | Migrated to **@ohos.ge…
40 …ation| method | function isLocationEnabled(): Promise<boolean>; | Migrated to **@ohos.geoLocationM…
41 |geolocation| method | function requestEnableLocation(callback: AsyncCallback<boolean>): void; | De…
42 |geolocation| method | function requestEnableLocation(): Promise<boolean>; | Deleted.|
43 |geolocation| method | function enableLocation(callback: AsyncCallback<boolean>): void; | Migrated …
44 |geolocation| method | function enableLocation(): Promise<boolean>; | Migrated to **@ohos.geoLocati…
45 …thod | function disableLocation(callback: AsyncCallback<boolean>): void; | Migrated to **@ohos.geo…
46 …cation| method | function disableLocation(): Promise<boolean>; | Migrated to **@ohos.geoLocationMa…
47 |geolocation| method | function getAddressesFromLocation(request: ReverseGeoCodeRequest, callback: …
48 |geolocation| method | function getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise<A…
49 |geolocation| method | function getAddressesFromLocationName(request: GeoCodeRequest, callback: Asy…
50 |geolocation| method | function getAddressesFromLocationName(request: GeoCodeRequest): Promise<Arra…
51 …d | function isGeoServiceAvailable(callback: AsyncCallback<boolean>): void; | Migrated to **@ohos.…
52 …ion| method | function isGeoServiceAvailable(): Promise<boolean>; | Migrated to **@ohos.geoLocatio…
53 |geolocation| method | function getCachedGnssLocationsSize(callback: AsyncCallback<number>): void; …
54 |geolocation| method | function getCachedGnssLocationsSize(): Promise<number>; | Migrated to **@oho…
55 |geolocation| method | function flushCachedGnssLocations(callback: AsyncCallback<boolean>): void; |…
56 |geolocation| method | function flushCachedGnssLocations(): Promise<boolean>; | Migrated to **@ohos…
57 |geolocation| method | function sendCommand(command: LocationCommand, callback: AsyncCallback<boole…
58 |geolocation| method | function sendCommand(command: LocationCommand): Promise<boolean>; | Migrated…
59 …thod | function enableLocationMock(callback: AsyncCallback<void>): void; | Migrated to **@ohos.geo…
60 …cation| method | function enableLocationMock(): Promise<void>; | Migrated to **@ohos.geoLocationMa…
61 …hod | function disableLocationMock(callback: AsyncCallback<void>): void; | Migrated to **@ohos.geo…
62 …ation| method | function disableLocationMock(): Promise<void>; | Migrated to **@ohos.geoLocationMa…
63function setMockedLocations(config: LocationMockConfig, callback: AsyncCallback<void>): void; | Mi…
64 …d | function setMockedLocations(config: LocationMockConfig): Promise<void>; | Migrated to **@ohos.…
65 … | function enableReverseGeocodingMock(callback: AsyncCallback<void>): void; | Migrated to **@ohos…
66 …on| method | function enableReverseGeocodingMock(): Promise<void>; | Migrated to **@ohos.geoLocati…
67 …| function disableReverseGeocodingMock(callback: AsyncCallback<void>): void; | Migrated to **@ohos…
68 …n| method | function disableReverseGeocodingMock(): Promise<void>; | Migrated to **@ohos.geoLocati…
69function setReverseGeocodingMockInfo(mockInfos: Array<ReverseGeocodingMockInfo>, callback: AsyncCa…
70function setReverseGeocodingMockInfo(mockInfos: Array<ReverseGeocodingMockInfo>): Promise<void>; |…
71function isLocationPrivacyConfirmed(type: LocationPrivacyType, callback: AsyncCallback<boolean>): …
72function isLocationPrivacyConfirmed(type: LocationPrivacyType,): Promise<boolean>; | Migrated to *…
73function setLocationPrivacyConfirmStatus(type: LocationPrivacyType, isConfirmed: boolean, callback…
74function setLocationPrivacyConfirmStatus(type: LocationPrivacyType, isConfirmed: boolean): Promise…