decord/source/modules/activities/utils/tryLaunchAsFrame.tsx

30 lines
899 B
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 10542
// Function ID: 82284
2026-07-20 16:05:17 +00:00
// Name: tryLaunchAsFrame
2026-07-24 07:16:23 +00:00
// Dependencies: [4167, 10511, 10512, 2]
2026-07-20 16:05:17 +00:00
// Exports: tryLaunchAsFrame
2026-07-24 07:16:23 +00:00
// Module 10542 (tryLaunchAsFrame)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
const require = arg1;
const result = require("_launchFrameOnNative").fileFinishedImporting("modules/activities/utils/tryLaunchAsFrame.tsx");
2026-07-20 16:05:17 +00:00
export const tryLaunchAsFrame = function tryLaunchAsFrame(applicationId) {
applicationId = applicationId.applicationId;
2026-07-23 10:11:24 +00:00
application = application.getApplication(applicationId);
2026-07-20 16:05:17 +00:00
let tmp2 = null == application;
if (!tmp2) {
2026-07-24 07:16:23 +00:00
let obj = require(10511) /* canLaunchFrame */;
2026-07-20 16:05:17 +00:00
tmp2 = !obj.canLaunchFrame(application);
}
let flag = !tmp2;
if (!tmp2) {
obj = { applicationId };
2026-07-24 07:16:23 +00:00
importDefault(10512).launchFrame(obj);
2026-07-20 16:05:17 +00:00
flag = true;
2026-07-24 07:16:23 +00:00
const obj2 = importDefault(10512);
2026-07-20 16:05:17 +00:00
}
return flag;
};