decord/beta/source/modules/frames/utils/canLaunchContextlessFrame.tsx
2026-10-12 16:32:48 +00:00

31 lines
1.2 KiB
TypeScript

// Module ID: 10803
// Function ID: 10804
// Name: canLaunchContextlessFrame
// Dependencies: [1085, 9247, 2029, 8611, 9233, 2]
// Exports: canLaunchContextlessFrame
// Module 10803 (canLaunchContextlessFrame)
import Constants from "Constants" /* 1085 */;
import EmbeddedSurfaceUtils from "EmbeddedSurfaceUtils" /* 2029 */;
import ApplicationFlagUtils from "ApplicationFlagUtils" /* 9233 */;
import AppLauncherUtils from "AppLauncherUtils" /* 9247 */;
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;
let result = tmpResult.supportsEmbeddedSurface(application, tmp(8611).EmbeddedSurfaceType.MAIN);
const tmpResult2 = ApplicationFlagUtils;
if (result) {
result = tmpResult2.hasApplicationFlag(application, ApplicationFlags.CONTEXTLESS_ACTIVITY);
}
return result;
}
}
return false;
};