decord/source/modules/vibegrations/lib/VibegrationsPlatformUtils.native.tsx

54 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 16689
// Function ID: 16690
// Name: VibegrationsPlatformUtils
// Dependencies: [1895, 13805, 9817, 2]
2026-08-24 06:08:38 +00:00
// Module 16689 (VibegrationsPlatformUtils)
import PushNotificationDefault from "PushNotification" /* 9817 */;
import AppStateStore from "AppStateStore" /* 1895 */;
2026-08-24 06:08:38 +00:00
const LocalNotificationTypes = fn(13805).LocalNotificationTypes;
const size = fn(2);
let result = size.fileFinishedImporting("modules/vibegrations/lib/VibegrationsPlatformUtils.native.tsx");
2026-08-24 06:08:38 +00:00
export default {
openVibegrationsAppInstallModal() {
return Promise.resolve();
},
isWindowFocused() {
return "active" === AppStateStore.getState();
2026-08-24 06:08:38 +00:00
},
areTurnNotificationsDisabled() {
return false;
},
presentTurnNotification(arg0) {
({ projectId, guildId } = arg0);
({ title, body } = arg0);
const obj2 = { category: "local", alertTitle: title, alertBody: body, userInfo: null };
2026-08-24 06:08:38 +00:00
if (null != guildId) {
const obj4 = { guildId };
let obj5 = obj4;
2026-08-24 06:08:38 +00:00
} else {
obj5 = {};
2026-08-24 06:08:38 +00:00
}
const merged = Object.assign(obj5);
obj2.userInfo = { type: LocalNotificationTypes.VIBEGRATIONS, projectId, channel_id: projectId };
const result = PushNotificationDefault.presentLocalNotification(obj2);
2026-08-24 06:08:38 +00:00
},
relayPreviewCapture() {
2026-08-24 06:08:38 +00:00
return Promise.resolve({ status: "unavailable" });
},
relayPreviewControl() {
2026-08-24 06:08:38 +00:00
return Promise.resolve({ status: "unavailable" });
},
releasePreviewControl() {
2026-08-24 06:08:38 +00:00
},
beginPreviewOperation() {
2026-08-24 06:08:38 +00:00
},
endPreviewOperation() {
2026-08-24 06:08:38 +00:00
}
};