decord/source/modules/vibegrations/lib/VibegrationsPlatformUtils.native.tsx
2026-08-28 06:19:39 +00:00

54 lines
1.5 KiB
TypeScript

// Module ID: 16107
// Function ID: 16108
// Dependencies: [7104, 13301, 9596, 2]
// Module 16107
import NativeModulesDefault from "NativeModules" /* 9596 */;
import closure_2 from "getState" /* 7104 */;
import { LocalNotificationTypes } from "LocalNotificationTypes" /* 13301 */;
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) {
}
};