decord/source/modules/vibegrations/lib/VibegrationsPlatformUtils.native.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

53 lines
1.5 KiB
TypeScript

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