Home
last modified time | relevance | path

Searched refs:watchId (Results 1 – 25 of 37) sorted by relevance

12

/expo/packages/expo-location/build/
H A DGeolocationPolyfill.js51 const watchId = LocationSubscriber.registerCallback(success);
52 ExpoLocation.watchPositionImplAsync(watchId, options).catch((err) => {
53 LocationSubscriber.unregisterCallback(watchId);
54 error({ watchId, message: err.message, code: err.code }); field
56 return watchId;
59 function clearWatch(watchId) { argument
60 LocationSubscriber.unregisterCallback(watchId);
H A DLocationSubscribers.js44 const watchId = event.watchId;
45 const callback = this.callbacks[watchId];
50 ExpoLocation.removeWatchAsync(watchId);
H A DExpoLocation.web.js89 async removeWatchAsync(watchId) {
90 navigator.geolocation.clearWatch(watchId);
104 async watchPositionImplAsync(watchId, options) {
107 watchId = global.navigator.geolocation.watchPosition((position) => {
110 watchId, field
116 resolve(watchId);
H A DLocation.js75 const watchId = LocationSubscriber.registerCallback(callback);
76 await ExpoLocation.watchPositionImplAsync(watchId, options);
79 LocationSubscriber.unregisterCallback(watchId);
111 const watchId = HeadingSubscriber.registerCallback(callback);
112 await ExpoLocation.watchDeviceHeading(watchId);
115 HeadingSubscriber.unregisterCallback(watchId);
H A DExpoLocation.web.d.ts15 removeWatchAsync(watchId: any): Promise<void>;
20 watchPositionImplAsync(watchId: string, options: LocationOptions): Promise<string>;
H A DGeolocationPolyfill.js.map1watchId = LocationSubscriber.registerCallback(success);\n\n ExpoLocation.watchPositionImplAsync(w…
/expo/packages/expo-location/src/
H A DGeolocationPolyfill.ts79 const watchId = LocationSubscriber.registerCallback(success); constant
81 ExpoLocation.watchPositionImplAsync(watchId, options).catch((err) => {
82 LocationSubscriber.unregisterCallback(watchId);
83 error({ watchId, message: err.message, code: err.code });
86 return watchId;
90 function clearWatch(watchId: number) {
91 LocationSubscriber.unregisterCallback(watchId);
H A DLocationSubscribers.ts8 watchId: number;
64 const watchId = event.watchId; constant
65 const callback = this.callbacks[watchId]; constant
70 ExpoLocation.removeWatchAsync(watchId);
H A DExpoLocation.web.ts111 async removeWatchAsync(watchId): Promise<void> {
112 navigator.geolocation.clearWatch(watchId);
126 async watchPositionImplAsync(watchId: string, options: LocationOptions): Promise<string> {
129 watchId = global.navigator.geolocation.watchPosition(
133 watchId,
141 resolve(watchId);
H A DLocation.ts115 const watchId = LocationSubscriber.registerCallback(callback); constant
116 await ExpoLocation.watchPositionImplAsync(watchId, options);
120 LocationSubscriber.unregisterCallback(watchId);
156 const watchId = HeadingSubscriber.registerCallback(callback); constant
157 await ExpoLocation.watchDeviceHeading(watchId);
161 HeadingSubscriber.unregisterCallback(watchId);
/expo/packages/expo-location/src/__tests__/
H A DLocation-test.native.ts130 const watchId = navigator.geolocation.watchPosition(callback); constant
137 navigator.geolocation.clearWatch(watchId);
146 watchId: Location._getCurrentWatchId(),
/expo/ios/versioned/sdk49/EXLocation/EXLocation/
H A DABI49_0_0EXLocationDelegate.m7 - (instancetype)initWithId:(nullable NSNumber *)watchId
14 _watchId = watchId;
H A DABI49_0_0EXLocationDelegate.h12 @property (nonatomic, strong) NSNumber *watchId;
18 - (instancetype)initWithId:(nullable NSNumber *)watchId
H A DABI49_0_0EXLocation.m131 watchId:(nonnull NSNumber *)watchId
143 …ABI49_0_0EXLocationDelegate *delegate = [[ABI49_0_0EXLocationDelegate alloc] initWithId:watchId wi…
149 @"watchId": watchId,
163 _delegates[delegate.watchId] = delegate;
188 watchHeadingWithWatchId:(nonnull NSNumber *)watchId
202 …ABI49_0_0EXLocationDelegate *delegate = [[ABI49_0_0EXLocationDelegate alloc] initWithId:watchId wi…
218 NSDictionary *body = @{@"watchId": watchId,
231 _delegates[delegate.watchId] = delegate;
238 watchId:(nonnull NSNumber *)watchId
242 ABI49_0_0EXLocationDelegate *delegate = _delegates[watchId];
[all …]
/expo/ios/versioned/sdk47/EXLocation/EXLocation/
H A DABI47_0_0EXLocationDelegate.m7 - (instancetype)initWithId:(nullable NSNumber *)watchId
14 _watchId = watchId;
H A DABI47_0_0EXLocationDelegate.h12 @property (nonatomic, strong) NSNumber *watchId;
18 - (instancetype)initWithId:(nullable NSNumber *)watchId
H A DABI47_0_0EXLocation.m131 watchId:(nonnull NSNumber *)watchId
143 …ABI47_0_0EXLocationDelegate *delegate = [[ABI47_0_0EXLocationDelegate alloc] initWithId:watchId wi…
149 @"watchId": watchId,
163 _delegates[delegate.watchId] = delegate;
188 watchHeadingWithWatchId:(nonnull NSNumber *)watchId
202 …ABI47_0_0EXLocationDelegate *delegate = [[ABI47_0_0EXLocationDelegate alloc] initWithId:watchId wi…
218 NSDictionary *body = @{@"watchId": watchId,
231 _delegates[delegate.watchId] = delegate;
238 watchId:(nonnull NSNumber *)watchId
242 ABI47_0_0EXLocationDelegate *delegate = _delegates[watchId];
[all …]
/expo/ios/versioned/sdk48/EXLocation/EXLocation/
H A DABI48_0_0EXLocationDelegate.m7 - (instancetype)initWithId:(nullable NSNumber *)watchId
14 _watchId = watchId;
H A DABI48_0_0EXLocationDelegate.h12 @property (nonatomic, strong) NSNumber *watchId;
18 - (instancetype)initWithId:(nullable NSNumber *)watchId
H A DABI48_0_0EXLocation.m131 watchId:(nonnull NSNumber *)watchId
143 …ABI48_0_0EXLocationDelegate *delegate = [[ABI48_0_0EXLocationDelegate alloc] initWithId:watchId wi…
149 @"watchId": watchId,
163 _delegates[delegate.watchId] = delegate;
188 watchHeadingWithWatchId:(nonnull NSNumber *)watchId
202 …ABI48_0_0EXLocationDelegate *delegate = [[ABI48_0_0EXLocationDelegate alloc] initWithId:watchId wi…
218 NSDictionary *body = @{@"watchId": watchId,
231 _delegates[delegate.watchId] = delegate;
238 watchId:(nonnull NSNumber *)watchId
242 ABI48_0_0EXLocationDelegate *delegate = _delegates[watchId];
[all …]
/expo/packages/expo-location/ios/EXLocation/
H A DEXLocationDelegate.h12 @property (nonatomic, strong) NSNumber *watchId;
18 - (instancetype)initWithId:(nullable NSNumber *)watchId
H A DEXLocationDelegate.m7 - (instancetype)initWithId:(nullable NSNumber *)watchId
14 _watchId = watchId;
H A DEXLocation.m131 watchId:(nonnull NSNumber *)watchId
143 …EXLocationDelegate *delegate = [[EXLocationDelegate alloc] initWithId:watchId withLocMgr:locMgr on…
149 @"watchId": watchId,
163 _delegates[delegate.watchId] = delegate;
188 watchHeadingWithWatchId:(nonnull NSNumber *)watchId
202 …EXLocationDelegate *delegate = [[EXLocationDelegate alloc] initWithId:watchId withLocMgr:locMgr on…
218 NSDictionary *body = @{@"watchId": watchId,
231 _delegates[delegate.watchId] = delegate;
238 watchId:(nonnull NSNumber *)watchId
242 EXLocationDelegate *delegate = _delegates[watchId];
[all …]
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/Libraries/Settings/
H A DSettings.d.ts14 clearWatch(watchId: number): void;
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/Libraries/Settings/
H A DSettings.d.ts14 clearWatch(watchId: number): void;

12