decord/source/stores/native/MobileVoiceOverlayStore.tsx

66 lines
2.2 KiB
TypeScript
Raw Normal View History

// Module ID: 9985
// Function ID: 9986
2026-07-29 08:29:29 +00:00
// Name: getUserAgnosticState
// Dependencies: [1074, 1242, 1115, 1608, 504, 573, 2]
2026-07-29 08:29:29 +00:00
// Exports: isMobileOverlaySupported
2026-07-20 16:05:17 +00:00
// Module 9985 (getUserAgnosticState)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import initializeDefault from "initialize" /* 504 */;
import dispatcherDefault from "dispatcher" /* 573 */;
import ME from "ME" /* 1074 */;
import set2 from "set" /* 1115 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 1242 */;
import isMetaQuest from "isMetaQuest" /* 1608 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const AnalyticEvents = ME.AnalyticEvents;
2026-07-29 08:29:29 +00:00
let c4 = false;
2026-08-24 06:08:38 +00:00
const DeviceSettingsStore = initializeDefault.DeviceSettingsStore;
2026-07-29 08:29:29 +00:00
class MobileVoiceOverlayStore extends DeviceSettingsStore {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = MobileVoiceOverlayStore.prototype;
prototype["getUserAgnosticState"] = function getUserAgnosticState() {
return { enabled: c4 };
};
prototype["initialize"] = function initialize(enabled) {
let flag;
if (enabled != null) {
flag = enabled.enabled;
}
if (flag == null) {
flag = false;
}
};
prototype["getEnabled"] = function getEnabled() {
2026-08-24 06:08:38 +00:00
let isAndroidResult = set2.isAndroid();
2026-07-20 16:05:17 +00:00
if (isAndroidResult) {
2026-08-24 06:08:38 +00:00
isAndroidResult = !isMetaQuest.isMetaQuest();
const tmpResult = isMetaQuest;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (isAndroidResult) {
isAndroidResult = c4;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return isAndroidResult;
};
MobileVoiceOverlayStore.displayName = "MobileVoiceOverlayStore";
MobileVoiceOverlayStore.persistKey = "MobileVoiceOverlayStore";
2026-08-24 06:08:38 +00:00
const mobileVoiceOverlayStore = new MobileVoiceOverlayStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
MOBILE_VOICE_OVERLAY_STATE_CHANGED: function handleMobileVoiceOverlayStateChanged(enabled) {
2026-08-24 06:08:38 +00:00
let obj = expandEventPropertiesDefault;
2026-07-20 16:05:17 +00:00
obj = { enabled: enabled.enabled };
obj.track(AnalyticEvents.MOBILE_OVERLAY_TOGGLED, obj);
enabled = enabled.enabled;
}
});
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("stores/native/MobileVoiceOverlayStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default mobileVoiceOverlayStore;
export const isMobileOverlaySupported = function isMobileOverlaySupported() {
2026-08-24 06:08:38 +00:00
let isAndroidResult = set2.isAndroid();
2026-07-29 08:29:29 +00:00
if (isAndroidResult) {
2026-08-24 06:08:38 +00:00
isAndroidResult = !isMetaQuest.isMetaQuest();
const tmpResult = isMetaQuest;
2026-07-29 08:29:29 +00:00
}
return isAndroidResult;
};