65 lines
2.2 KiB
TypeScript
65 lines
2.2 KiB
TypeScript
// Module ID: 9985
|
|
// Function ID: 9986
|
|
// Name: getUserAgnosticState
|
|
// Dependencies: [1074, 1242, 1115, 1608, 504, 573, 2]
|
|
// Exports: isMobileOverlaySupported
|
|
|
|
// Module 9985 (getUserAgnosticState)
|
|
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 */;
|
|
|
|
const AnalyticEvents = ME.AnalyticEvents;
|
|
let c4 = false;
|
|
const DeviceSettingsStore = initializeDefault.DeviceSettingsStore;
|
|
class MobileVoiceOverlayStore extends DeviceSettingsStore {
|
|
}
|
|
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 = set2.isAndroid();
|
|
if (isAndroidResult) {
|
|
isAndroidResult = !isMetaQuest.isMetaQuest();
|
|
const tmpResult = isMetaQuest;
|
|
}
|
|
if (isAndroidResult) {
|
|
isAndroidResult = c4;
|
|
}
|
|
return isAndroidResult;
|
|
};
|
|
MobileVoiceOverlayStore.displayName = "MobileVoiceOverlayStore";
|
|
MobileVoiceOverlayStore.persistKey = "MobileVoiceOverlayStore";
|
|
const mobileVoiceOverlayStore = new MobileVoiceOverlayStore(dispatcherDefault, {
|
|
MOBILE_VOICE_OVERLAY_STATE_CHANGED: function handleMobileVoiceOverlayStateChanged(enabled) {
|
|
let obj = expandEventPropertiesDefault;
|
|
obj = { enabled: enabled.enabled };
|
|
obj.track(AnalyticEvents.MOBILE_OVERLAY_TOGGLED, obj);
|
|
enabled = enabled.enabled;
|
|
}
|
|
});
|
|
const result = set.fileFinishedImporting("stores/native/MobileVoiceOverlayStore.tsx");
|
|
|
|
export default mobileVoiceOverlayStore;
|
|
export const isMobileOverlaySupported = function isMobileOverlaySupported() {
|
|
let isAndroidResult = set2.isAndroid();
|
|
if (isAndroidResult) {
|
|
isAndroidResult = !isMetaQuest.isMetaQuest();
|
|
const tmpResult = isMetaQuest;
|
|
}
|
|
return isAndroidResult;
|
|
};
|