decord/source/stores/native/AppStateStore.tsx
2026-08-25 06:04:03 +00:00

62 lines
1.8 KiB
TypeScript

// Module ID: 7019
// Function ID: 7020
// Name: getState
// Dependencies: [17, 676, 589, 698, 2009, 709, 2]
// Module 7019 (getState)
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 */;
import asyncRequireImpl from "asyncRequireImpl" /* 2009 */;
import promise from "expandEventProperties" /* 698 */;
const AppStates = ME.AppStates;
const currentState = get_ActivityIndicator.AppState.currentState;
let c2 = null;
const Store = initializeDefault.Store;
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) => {
const result = addExtraAnalyticsDecorator.addExtraAnalyticsDecorator((arg0) => {
arg0.client_app_state = closure_1;
});
});
const appStateStore = new AppStateStore(dispatcherDefault, {
APP_STATE_UPDATE: function handleAppStateUpdate(state) {
if (state === state.state) {
return false;
} else {
state = state.state;
if (state === AppStates.ACTIVE) {
const _Date = Date;
closure_2 = Date.now();
}
}
}
});
const obj = {
APP_STATE_UPDATE: function handleAppStateUpdate(state) {
if (state === state.state) {
return false;
} else {
state = state.state;
if (state === AppStates.ACTIVE) {
const _Date = Date;
closure_2 = Date.now();
}
}
}
};
let result = set.fileFinishedImporting("stores/native/AppStateStore.tsx");
export default appStateStore;