decord/source/stores/native/MobileVoiceOverlayStore.tsx

59 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 10713
// Function ID: 10714
2026-07-29 08:29:29 +00:00
// Name: getUserAgnosticState
// Dependencies: [676, 698, 500, 1577, 589, 709, 2]
// Exports: isMobileOverlaySupported
2026-07-20 16:05:17 +00:00
2026-08-05 07:35:12 +00:00
// Module 10713 (getUserAgnosticState)
2026-07-23 10:11:24 +00:00
import { AnalyticEvents } from "ME";
2026-07-29 08:29:29 +00:00
import { DeviceSettingsStore } from "initialize";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c4 = false;
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() {
let isAndroidResult = require(500) /* set */.isAndroid();
2026-07-20 16:05:17 +00:00
if (isAndroidResult) {
2026-07-29 08:29:29 +00:00
isAndroidResult = !require(1577) /* isMetaQuest */.isMetaQuest();
const tmpResult = require(1577) /* 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";
const mobileVoiceOverlayStore = new MobileVoiceOverlayStore(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
MOBILE_VOICE_OVERLAY_STATE_CHANGED: function handleMobileVoiceOverlayStateChanged(enabled) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(698);
2026-07-20 16:05:17 +00:00
obj = { enabled: enabled.enabled };
obj.track(AnalyticEvents.MOBILE_OVERLAY_TOGGLED, obj);
enabled = enabled.enabled;
}
});
2026-07-29 08:29:29 +00:00
const result = require("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() {
let isAndroidResult = require(500) /* set */.isAndroid();
if (isAndroidResult) {
isAndroidResult = !require(1577) /* isMetaQuest */.isMetaQuest();
const tmpResult = require(1577) /* isMetaQuest */;
}
return isAndroidResult;
};