Home
last modified time | relevance | path

Searched refs:emitter (Results 1 – 25 of 97) sorted by relevance

1234

/expo/packages/expo-modules-core/src/__tests__/
H A DEventEmitter-test.ts18 emitter.addListener('test', mockListener);
20 emitter.emit('test');
24 emitter.emit('test', 'hello', 'world');
34 emitter.addListener('test', mockListener);
35 emitter.removeAllListeners('test');
37 emitter.emit('test');
47 emitter.removeSubscription(subscription);
49 emitter.emit('test');
93 emitter.emit('test');
138 emitter.addListener('test', () => {});
[all …]
/expo/packages/expo-maps/build/
H A DEvents.js11 const emitter = new EventEmitter(module); constant
22 return emitter.addListener(MapsEventsNames.ON_MARKER_CLICK_EVENT, listener);
28 emitter.removeAllListeners(MapsEventsNames.ON_MARKER_CLICK_EVENT);
36 return emitter.addListener(MapsEventsNames.ON_MARKER_DRAG_STARTED_EVENT, listener);
42 emitter.removeAllListeners(MapsEventsNames.ON_MARKER_DRAG_STARTED_EVENT);
50 return emitter.addListener(MapsEventsNames.ON_MARKER_DRAG_ENDED_EVENT, listener);
56 emitter.removeAllListeners(MapsEventsNames.ON_MARKER_DRAG_ENDED_EVENT);
62 emitter.removeSubscription(subscription);
69 emitter.removeAllListeners(MapsEventsNames[event]);
/expo/packages/expo-maps/src/
H A DEvents.ts21 const emitter = new EventEmitter(module); constant
142 return emitter.addListener<MarkerClickEvent>(MapsEventsNames.ON_MARKER_CLICK_EVENT, listener);
149 emitter.removeAllListeners(MapsEventsNames.ON_MARKER_CLICK_EVENT);
160 return emitter.addListener<MarkerDragStartedEvent>(
170 emitter.removeAllListeners(MapsEventsNames.ON_MARKER_DRAG_STARTED_EVENT);
181 return emitter.addListener<MarkerDragEndedEvent>(
191 emitter.removeAllListeners(MapsEventsNames.ON_MARKER_DRAG_ENDED_EVENT);
198 emitter.removeSubscription(subscription);
206 emitter.removeAllListeners(MapsEventsNames[event]);
/expo/packages/expo-notifications/build/
H A DNotificationsEmitter.js4 const emitter = new EventEmitter(NotificationsEmitterModule); constant
35 return emitter.addListener(didReceiveNotificationEventName, listener);
46 return emitter.addListener(didDropNotificationsEventName, listener);
75 return emitter.addListener(didReceiveNotificationResponseEventName, listener);
83 emitter.removeSubscription(subscription);
/expo/packages/expo-localization/build/
H A DExpoLocalization.native.js3 const emitter = new EventEmitter(ExpoLocalizationModule); constant
5 return emitter.addListener('onLocaleSettingsChanged', listener);
8 return emitter.addListener('onCalendarSettingsChanged', listener);
11 return emitter.removeSubscription(subscription);
H A DExpoLocalization.native.js.map1emitter = new EventEmitter(ExpoLocalizationModule);\n\nexport function addLocaleListener(listener:…
/expo/packages/expo-notifications/src/
H A DNotificationsEmitter.ts7 const emitter = new EventEmitter(NotificationsEmitterModule); constant
43 return emitter.addListener<Notification>(didReceiveNotificationEventName, listener);
55 return emitter.addListener<void>(didDropNotificationsEventName, listener);
87 return emitter.addListener<NotificationResponse>(
99 emitter.removeSubscription(subscription);
/expo/packages/expo-localization/src/
H A DExpoLocalization.native.ts4 const emitter = new EventEmitter(ExpoLocalizationModule); constant
7 return emitter.addListener('onLocaleSettingsChanged', listener);
11 return emitter.addListener('onCalendarSettingsChanged', listener);
15 return emitter.removeSubscription(subscription);
/expo/packages/expo-updates/build/
H A DUpdatesEmitter.js51 const emitter = _getEmitter();
52 return emitter.addListener('Expo.updatesEvent', listener);
60 const emitter = _getEmitter(); constant
61 return emitter.addListener('Expo.updatesStateChangeEvent', listener);
/expo/ios/versioned/sdk48/EXSpeech/EXSpeech/
H A DABI48_0_0EXSpeech.m64 …id<ABI48_0_0EXEventEmitterService> emitter = [_moduleRegistry getModuleImplementingProtocol:@proto…
65 if (emitter != nil) {
66 …[emitter sendEventWithName:@"Exponent.speakingStarted" body:@{ @"id": ((ABI48_0_0EXSpeechUtterance…
73 …id<ABI48_0_0EXEventEmitterService> emitter = [_moduleRegistry getModuleImplementingProtocol:@proto…
74 if (emitter != nil) {
82 …id<ABI48_0_0EXEventEmitterService> emitter = [_moduleRegistry getModuleImplementingProtocol:@proto…
83 if (emitter != nil) {
84 …[emitter sendEventWithName:@"Exponent.speakingStopped" body:@{ @"id": ((ABI48_0_0EXSpeechUtterance…
91 …id<ABI48_0_0EXEventEmitterService> emitter = [_moduleRegistry getModuleImplementingProtocol:@proto…
92 if (emitter != nil) {
[all …]
/expo/packages/expo-updates/src/
H A DUpdatesEmitter.ts61 const emitter = _getEmitter(); constant
62 return emitter.addListener('Expo.updatesEvent', listener);
74 const emitter = _getEmitter();
75 return emitter.addListener('Expo.updatesStateChangeEvent', listener);
/expo/packages/expo/build/environment/
H A DDevLoadingView.js12 const emitter = useMemo(() => {
22 if (!emitter)
49 …const showMessageSubscription = emitter.addListener('devLoadingView:showMessage', handleShowMessag…
50 const hideSubscription = emitter.addListener('devLoadingView:hide', handleHide);
55 }, [translateY, emitter]);
/expo/packages/expo-module-template/src/
H A D{%- project.moduleName %}.web.ts3 const emitter = new EventEmitter({} as any); constant
8 emitter.emit('onChange', { value });
H A Dindex.ts20 const emitter = new EventEmitter(<%- project.moduleName %> ?? NativeModulesProxy.<%- project.name %… constant
23 return emitter.addListener<ChangeEventPayload>('onChange', listener);
/expo/packages/expo-module-template-local/src/
H A D{%- project.moduleName %}.web.ts3 const emitter = new EventEmitter({} as any); constant
8 emitter.emit('onChange', { value });
/expo/packages/expo-screen-capture/build/
H A DScreenCapture.js5 const emitter = new EventEmitter(ExpoScreenCapture); constant
88 return emitter.addListener(onScreenshotEventName, listener);
109 emitter.removeSubscription(subscription);
/expo/packages/expo-screen-capture/src/
H A DScreenCapture.ts7 const emitter = new EventEmitter(ExpoScreenCapture); constant
99 return emitter.addListener<void>(onScreenshotEventName, listener);
121 emitter.removeSubscription(subscription);
/expo/ios/versioned/sdk47/EXSpeech/EXSpeech/
H A DABI47_0_0EXSpeech.m64 …id<ABI47_0_0EXEventEmitterService> emitter = [_moduleRegistry getModuleImplementingProtocol:@proto…
65 if (emitter != nil) {
66 …[emitter sendEventWithName:@"Exponent.speakingStarted" body:@{ @"id": ((ABI47_0_0EXSpeechUtterance…
73 …id<ABI47_0_0EXEventEmitterService> emitter = [_moduleRegistry getModuleImplementingProtocol:@proto…
74 if (emitter != nil) {
75 …[emitter sendEventWithName:@"Exponent.speakingStopped" body:@{ @"id": ((ABI47_0_0EXSpeechUtterance…
82 …id<ABI47_0_0EXEventEmitterService> emitter = [_moduleRegistry getModuleImplementingProtocol:@proto…
83 if (emitter != nil) {
84 …[emitter sendEventWithName:@"Exponent.speakingDone" body:@{ @"id": ((ABI47_0_0EXSpeechUtteranceWit…
/expo/packages/expo-battery/build/
H A DExpoBattery.web.js3 const emitter = new EventEmitter({}); constant
53 emitter.emit('Expo.batteryStateDidChange', { batteryState });
62 emitter.emit('Expo.batteryLevelDidChange', { batteryLevel });
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/ReactCommon/react/nativemodule/core/ReactCommon/
H A DABI49_0_0TurboModule.cpp38 jsi::Value emitter = in emitDeviceEvent() local
40 if (!emitter.isUndefined()) { in emitDeviceEvent()
41 jsi::Object emitterObject = emitter.asObject(runtime); in emitDeviceEvent()
/expo/packages/expo/src/environment/
H A DDevLoadingView.tsx14 const emitter = useMemo<EventEmitter>(() => {
19 …'Failed to instantiate native emitter in `DevLoadingView` because the native module `DevLoadingVie…
26 if (!emitter) return;
57 const showMessageSubscription = emitter.addListener(
61 const hideSubscription = emitter.addListener('devLoadingView:hide', handleHide);
67 }, [translateY, emitter]);
/expo/packages/expo-module-template-local/
H A Dindex.ts20 const emitter = new EventEmitter(<%- project.moduleName %> ?? NativeModulesProxy.<%- project.name %… constant
23 return emitter.addListener<ChangeEventPayload>('onChange', listener);
/expo/packages/expo-clipboard/build/
H A DClipboard.js4 const emitter = new EventEmitter(ExpoClipboard); constant
190 return emitter.addListener(onClipboardEventName, listenerWrapper);
206 emitter.removeSubscription(subscription);
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/Libraries/vendor/emitter/
H A DEventEmitter.d.ts77 emitter: EventEmitter;
92 emitter: EventEmitter,
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/Libraries/vendor/emitter/
H A DEventEmitter.d.ts77 emitter: EventEmitter;
92 emitter: EventEmitter,

1234