decord/alpha/source/modules/device/BillingPlatformUtils.tsx

39 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 4741
// Function ID: 4742
// Name: BillingPlatformUtils
2026-10-09 10:00:15 +00:00
// Dependencies: [1628, 1382, 2]
2026-08-24 06:08:38 +00:00
// Exports: isCollectibleGiftingSupported, isGooglePlayBillingSupported, isPremiumGiftingSupported, isSocialLayerStorefrontGiftingSupported, isSocialLayerStorefrontPurchaseSupported
2026-07-20 16:05:17 +00:00
2026-10-09 10:00:15 +00:00
// Module 4741 (BillingPlatformUtils)
import PlatformUtils from "PlatformUtils" /* 1382 */;
import MetaQuestUtils from "MetaQuestUtils" /* 1628 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/device/BillingPlatformUtils.tsx");
2026-07-20 16:05:17 +00:00
export const isPremiumGiftingSupported = function isPremiumGiftingSupported() {
2026-10-03 08:58:59 +00:00
const obj = MetaQuestUtils;
return !obj.isMetaQuest();
2026-07-20 16:05:17 +00:00
};
export const isGooglePlayBillingSupported = function isGooglePlayBillingSupported() {
2026-10-03 08:58:59 +00:00
const obj = PlatformUtils;
let isAndroidResult = obj.isAndroid();
2026-07-20 16:05:17 +00:00
if (isAndroidResult) {
const tmpResult = MetaQuestUtils;
2026-10-03 08:58:59 +00:00
isAndroidResult = !tmpResult.isMetaQuest();
2026-07-20 16:05:17 +00:00
}
return isAndroidResult;
};
export const isCollectibleGiftingSupported = function isCollectibleGiftingSupported() {
2026-10-03 08:58:59 +00:00
const obj = MetaQuestUtils;
return !obj.isMetaQuest();
2026-07-20 16:05:17 +00:00
};
export const isSocialLayerStorefrontGiftingSupported = function isSocialLayerStorefrontGiftingSupported() {
2026-10-03 08:58:59 +00:00
const obj = MetaQuestUtils;
return !obj.isMetaQuest();
2026-08-24 06:08:38 +00:00
};
export const isSocialLayerStorefrontPurchaseSupported = function isSocialLayerStorefrontPurchaseSupported() {
2026-10-03 08:58:59 +00:00
const obj = MetaQuestUtils;
return !obj.isMetaQuest();
2026-07-20 16:05:17 +00:00
};