decord/beta/source/modules/frames/utils/canLaunchFrame.tsx

31 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-10-02 13:37:24 +00:00
// Module ID: 8778
// Function ID: 8779
// Name: canLaunchFrame
2026-10-02 13:37:24 +00:00
// Dependencies: [1086, 8587, 8318, 2]
// Exports: canLaunchFrame
2026-10-02 13:37:24 +00:00
// Module 8778 (canLaunchFrame)
import Constants from "Constants" /* 1086 */;
import ApplicationFlagUtils from "ApplicationFlagUtils" /* 8318 */;
import AppLauncherUtils from "AppLauncherUtils" /* 8587 */;
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) {
2026-10-01 14:13:23 +00:00
const obj = AppLauncherUtils;
if (obj.isRealApplication(application)) {
2026-10-01 14:13:23 +00:00
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;
};