decord/source/stores/native/AppStateStore.tsx

63 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 7019
// Function ID: 7020
2026-07-29 08:29:29 +00:00
// Name: getState
2026-08-25 06:04:03 +00:00
// Dependencies: [17, 676, 589, 698, 2009, 709, 2]
2026-07-23 10:11:24 +00:00
2026-08-25 06:04:03 +00:00
// Module 7019 (getState)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import initializeDefault from "initialize" /* 589 */;
import ME from "ME" /* 676 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-08-25 06:04:03 +00:00
import asyncRequireImpl from "asyncRequireImpl" /* 2009 */;
2026-08-24 06:08:38 +00:00
import promise from "expandEventProperties" /* 698 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
const AppStates = ME.AppStates;
const currentState = get_ActivityIndicator.AppState.currentState;
2026-07-29 08:29:29 +00:00
let c2 = null;
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class AppStateStore extends Store {
}
const prototype = AppStateStore.prototype;
prototype["getState"] = function getState() {
return currentState;
};
prototype["getLastActiveTime"] = function getLastActiveTime() {
return c2;
};
AppStateStore.displayName = "AppStateStore";
require("expandEventProperties").then((addExtraAnalyticsDecorator) => {
2026-07-20 16:05:17 +00:00
const result = addExtraAnalyticsDecorator.addExtraAnalyticsDecorator((arg0) => {
2026-07-29 08:29:29 +00:00
arg0.client_app_state = closure_1;
2026-07-20 16:05:17 +00:00
});
});
2026-08-24 06:08:38 +00:00
const appStateStore = new AppStateStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
APP_STATE_UPDATE: function handleAppStateUpdate(state) {
2026-07-23 10:11:24 +00:00
if (state === state.state) {
2026-07-20 16:05:17 +00:00
return false;
} else {
state = state.state;
if (state === AppStates.ACTIVE) {
const _Date = Date;
2026-08-24 06:08:38 +00:00
closure_2 = Date.now();
2026-07-20 16:05:17 +00:00
}
}
}
});
2026-07-29 08:29:29 +00:00
const obj = {
2026-07-20 16:05:17 +00:00
APP_STATE_UPDATE: function handleAppStateUpdate(state) {
2026-07-23 10:11:24 +00:00
if (state === state.state) {
2026-07-20 16:05:17 +00:00
return false;
} else {
state = state.state;
if (state === AppStates.ACTIVE) {
const _Date = Date;
2026-08-24 06:08:38 +00:00
closure_2 = Date.now();
2026-07-20 16:05:17 +00:00
}
}
}
};
2026-08-24 06:08:38 +00:00
let result = set.fileFinishedImporting("stores/native/AppStateStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default appStateStore;