decord/source/stores/native/MobileVoiceOverlayStore.tsx

66 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 10934
// Function ID: 10935
2026-07-29 08:29:29 +00:00
// Name: getUserAgnosticState
2026-08-15 05:55:55 +00:00
// Dependencies: [676, 698, 500, 1625, 589, 709, 2]
2026-07-29 08:29:29 +00:00
// Exports: isMobileOverlaySupported
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 10934 (getUserAgnosticState)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import set2 from "set" /* 500 */;
import initializeDefault from "initialize" /* 589 */;
import ME from "ME" /* 676 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
import dispatcherDefault from "dispatcher" /* 709 */;
import isMetaQuest from "isMetaQuest" /* 1625 */;
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;
};