decord/source/modules/vibegrations/lib/VibegrationsPlatformUtils.native.tsx
2026-08-25 06:04:03 +00:00

54 lines
1.5 KiB
TypeScript

// Module ID: 15945
// Function ID: 15946
// Dependencies: [7019, 13183, 10861, 2]
// Module 15945
import NativeModulesDefault from "NativeModules" /* 10861 */;
import closure_2 from "getState" /* 7019 */;
import { LocalNotificationTypes } from "LocalNotificationTypes" /* 13183 */;
let result = require("set").fileFinishedImporting("modules/vibegrations/lib/VibegrationsPlatformUtils.native.tsx");
export default {
openVibegrationsAppInstallModal() {
return Promise.resolve();
},
isWindowFocused() {
return "active" === state.getState();
},
areTurnNotificationsDisabled() {
return false;
},
presentTurnNotification(arg0) {
({ projectId, guildId } = arg0);
({ title, body } = arg0);
let obj = NativeModulesDefault;
obj = { category: "local", alertTitle: title, alertBody: body, userInfo: null };
obj = { type: LocalNotificationTypes.VIBEGRATIONS, projectId, channel_id: projectId };
if (null != guildId) {
obj1 = { guildId: null };
obj1[0] = guildId;
let obj2 = obj1;
} else {
obj2 = {};
}
const merged = Object.assign(obj2);
obj[3] = obj;
const result = obj.presentLocalNotification(obj);
},
relayPreviewCapture(closure_0, id, arg2) {
return Promise.resolve({ status: "unavailable" });
},
relayPreviewControl(closure_0, id, request, arg3) {
return Promise.resolve({ status: "unavailable" });
},
releasePreviewControl(closure_0) {
},
beginPreviewOperation(projectId) {
},
endPreviewOperation(projectId) {
}
};