| /expo/packages/expo-modules-core/src/__tests__/ |
| H A D | EventEmitter-test.ts | 18 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 D | Events.js | 11 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 D | Events.ts | 21 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 D | NotificationsEmitter.js | 4 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 D | ExpoLocalization.native.js | 3 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 D | ExpoLocalization.native.js.map | 1 …emitter = new EventEmitter(ExpoLocalizationModule);\n\nexport function addLocaleListener(listener:…
|
| /expo/packages/expo-notifications/src/ |
| H A D | NotificationsEmitter.ts | 7 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 D | ExpoLocalization.native.ts | 4 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 D | UpdatesEmitter.js | 51 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 D | ABI48_0_0EXSpeech.m | 64 …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 D | UpdatesEmitter.ts | 61 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 D | DevLoadingView.js | 12 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.ts | 3 const emitter = new EventEmitter({} as any); constant 8 emitter.emit('onChange', { value });
|
| H A D | index.ts | 20 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.ts | 3 const emitter = new EventEmitter({} as any); constant 8 emitter.emit('onChange', { value });
|
| /expo/packages/expo-screen-capture/build/ |
| H A D | ScreenCapture.js | 5 const emitter = new EventEmitter(ExpoScreenCapture); constant 88 return emitter.addListener(onScreenshotEventName, listener); 109 emitter.removeSubscription(subscription);
|
| /expo/packages/expo-screen-capture/src/ |
| H A D | ScreenCapture.ts | 7 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 D | ABI47_0_0EXSpeech.m | 64 …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 D | ExpoBattery.web.js | 3 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 D | ABI49_0_0TurboModule.cpp | 38 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 D | DevLoadingView.tsx | 14 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 D | index.ts | 20 const emitter = new EventEmitter(<%- project.moduleName %> ?? NativeModulesProxy.<%- project.name %… constant 23 return emitter.addListener<ChangeEventPayload>('onChange', listener);
|
| /expo/packages/expo-clipboard/build/ |
| H A D | Clipboard.js | 4 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 D | EventEmitter.d.ts | 77 emitter: EventEmitter; 92 emitter: EventEmitter,
|
| /expo/ios/versioned-react-native/ABI49_0_0/ReactNative/Libraries/vendor/emitter/ |
| H A D | EventEmitter.d.ts | 77 emitter: EventEmitter; 92 emitter: EventEmitter,
|