decord/alpha/source/modules/frames/utils/canLaunchContextlessFrame.tsx

32 lines
1.2 KiB
TypeScript
Raw Normal View History

2026-10-10 08:08:14 +00:00
// Module ID: 10803
// Function ID: 10804
2026-10-03 08:58:59 +00:00
// Name: canLaunchContextlessFrame
2026-10-10 08:08:14 +00:00
// Dependencies: [1085, 9246, 2029, 8610, 9232, 2]
2026-10-03 08:58:59 +00:00
// Exports: canLaunchContextlessFrame
2026-10-10 08:08:14 +00:00
// Module 10803 (canLaunchContextlessFrame)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import EmbeddedSurfaceUtils from "EmbeddedSurfaceUtils" /* 2029 */;
2026-10-10 08:08:14 +00:00
import ApplicationFlagUtils from "ApplicationFlagUtils" /* 9232 */;
import AppLauncherUtils from "AppLauncherUtils" /* 9246 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
const ApplicationFlags = Constants.ApplicationFlags;
let result = size.fileFinishedImporting("modules/frames/utils/canLaunchContextlessFrame.tsx");
export const canLaunchContextlessFrame = function canLaunchContextlessFrame(application) {
if (null != application) {
const obj = AppLauncherUtils;
if (obj.isRealApplication(application)) {
const tmpResult = EmbeddedSurfaceUtils;
2026-10-10 08:08:14 +00:00
let result = tmpResult.supportsEmbeddedSurface(application, tmp(8610).EmbeddedSurfaceType.MAIN);
2026-10-03 08:58:59 +00:00
const tmpResult2 = ApplicationFlagUtils;
if (result) {
result = tmpResult2.hasApplicationFlag(application, ApplicationFlags.CONTEXTLESS_ACTIVITY);
}
return result;
}
}
return false;
};