decord/source/modules/quests/native/AppStoreOverlayTelemetryManager.tsx

63 lines
2 KiB
TypeScript
Raw Normal View History

// Module ID: 11743
// Function ID: 11744
// Name: AppStoreOverlayTelemetryManager
// Dependencies: [1074, 7314, 1364, 1094, 2]
2026-07-20 16:05:17 +00:00
// Exports: clearAppStoreOverlayOpen, setAppStoreOverlayOpen
// Module 11743 (AppStoreOverlayTelemetryManager)
import Constants from "Constants" /* 1074 */;
import PlatformUtils from "PlatformUtils" /* 1364 */;
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 7314 */;
import size from "module_2" /* 2 */;
2026-07-20 16:05:17 +00:00
const AnalyticEvents = Constants.AnalyticEvents;
2026-07-29 08:29:29 +00:00
let c3 = null;
let c4 = null;
class AppStoreOverlayTelemetryManager extends tmp2 {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
closure_0 = applyArgumentsResult;
applyArgumentsResult.actions = {
APP_STATE_UPDATE(arg0) {
return applyArgumentsResult.handleAppStateUpdate(arg0);
}
};
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
AppStoreOverlayTelemetryManager.prototype["handleAppStateUpdate"] = function handleAppStateUpdate(state) {
state = state.state;
const isAndroidResult = PlatformUtils.isAndroid();
2026-07-29 08:29:29 +00:00
if (isAndroidResult) {
return !isAndroidResult;
} else {
let flag = null != _null;
if (flag) {
if (state !== tmp(1094).AppStates.ACTIVE) {
2026-07-29 08:29:29 +00:00
flag = false;
if (state === tmp(1094).AppStates.BACKGROUND) {
2026-07-29 08:29:29 +00:00
_null.trackOverlayEvent(AnalyticEvents.QUEST_APP_STORE_OVERLAY_BACKGROUNDED);
const _Date = Date;
2026-08-24 06:08:38 +00:00
c4 = Date.now();
2026-07-29 08:29:29 +00:00
flag = false;
}
}
const _Date2 = Date;
_null.trackOverlayEvent(AnalyticEvents.QUEST_APP_STORE_OVERLAY_RETURNED, Date.now() - c4);
c4 = null;
flag = false;
}
}
};
const appStoreOverlayTelemetryManager = new AppStoreOverlayTelemetryManager();
const result = size.fileFinishedImporting("modules/quests/native/AppStoreOverlayTelemetryManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default appStoreOverlayTelemetryManager;
2026-07-20 16:05:17 +00:00
export function setAppStoreOverlayOpen(arg0) {
c3 = arg0;
2026-07-20 16:05:17 +00:00
}
export function clearAppStoreOverlayOpen() {
2026-08-24 06:08:38 +00:00
c3 = null;
c4 = null;
2026-07-20 16:05:17 +00:00
}