// Module ID: 10012 // Function ID: 10013 // Name: MobileVoiceOverlayStore // Dependencies: [1074, 1242, 1115, 1608, 504, 573, 2] // Exports: isMobileOverlaySupported // Module 10012 (MobileVoiceOverlayStore) import initializeDefault from "initialize" /* 504 */; import DispatcherDefault from "Dispatcher" /* 573 */; import Constants from "Constants" /* 1074 */; import PlatformUtils from "PlatformUtils" /* 1115 */; import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1242 */; import MetaQuestUtils from "MetaQuestUtils" /* 1608 */; import size from "module_2" /* 2 */; const AnalyticEvents = Constants.AnalyticEvents; let enabled = false; const DeviceSettingsStore = initializeDefault.DeviceSettingsStore; class MobileVoiceOverlayStore extends DeviceSettingsStore { } const prototype = MobileVoiceOverlayStore.prototype; prototype["getUserAgnosticState"] = function getUserAgnosticState() { return { enabled }; }; prototype["initialize"] = function initialize(enabled) { let flag; if (enabled != null) { flag = enabled.enabled; } if (flag == null) { flag = false; } enabled = flag; }; prototype["getEnabled"] = function getEnabled() { let isAndroidResult = PlatformUtils.isAndroid(); if (isAndroidResult) { isAndroidResult = !MetaQuestUtils.isMetaQuest(); const tmpResult = MetaQuestUtils; } if (isAndroidResult) { isAndroidResult = enabled; } return isAndroidResult; }; MobileVoiceOverlayStore.displayName = "MobileVoiceOverlayStore"; MobileVoiceOverlayStore.persistKey = "MobileVoiceOverlayStore"; const mobileVoiceOverlayStore = new MobileVoiceOverlayStore(DispatcherDefault, { MOBILE_VOICE_OVERLAY_STATE_CHANGED: function handleMobileVoiceOverlayStateChanged(enabled) { AnalyticsUtilsDefault.track(AnalyticEvents.MOBILE_OVERLAY_TOGGLED, { enabled: enabled.enabled }); enabled = enabled.enabled; } }); const result = size.fileFinishedImporting("stores/native/MobileVoiceOverlayStore.tsx"); export default mobileVoiceOverlayStore; export const isMobileOverlaySupported = function isMobileOverlaySupported() { let isAndroidResult = PlatformUtils.isAndroid(); if (isAndroidResult) { isAndroidResult = !MetaQuestUtils.isMetaQuest(); const tmpResult = MetaQuestUtils; } return isAndroidResult; };