decord/beta/source/modules/frames/utils/canLaunchFrame.tsx
2026-10-01 14:13:23 +00:00

30 lines
1.1 KiB
TypeScript

// Module ID: 8783
// Function ID: 8784
// Name: canLaunchFrame
// Dependencies: [1074, 8590, 8321, 2]
// Exports: canLaunchFrame
// Module 8783 (canLaunchFrame)
import Constants from "Constants" /* 1074 */;
import ApplicationFlagUtils from "ApplicationFlagUtils" /* 8321 */;
import AppLauncherUtils from "AppLauncherUtils" /* 8590 */;
import size from "module_2" /* 2 */;
const ApplicationFlags = Constants.ApplicationFlags;
const result = size.fileFinishedImporting("modules/frames/utils/canLaunchFrame.tsx");
export const canLaunchFrame = function canLaunchFrame(application) {
if (null != application) {
const obj = AppLauncherUtils;
if (obj.isRealApplication(application)) {
const tmpResult = ApplicationFlagUtils;
let hasApplicationFlagResult = tmpResult.hasApplicationFlag(application, ApplicationFlags.EMBEDDED);
const tmpResult2 = ApplicationFlagUtils;
if (hasApplicationFlagResult) {
hasApplicationFlagResult = tmpResult2.hasApplicationFlag(application, ApplicationFlags.CONTEXTLESS_ACTIVITY);
}
return hasApplicationFlagResult;
}
}
return false;
};