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

34 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 4530
// Function ID: 4531
// Name: BillingPlatformUtils
// Dependencies: [1610, 1364, 2]
2026-08-24 06:08:38 +00:00
// Exports: isCollectibleGiftingSupported, isGooglePlayBillingSupported, isPremiumGiftingSupported, isSocialLayerStorefrontGiftingSupported, isSocialLayerStorefrontPurchaseSupported
2026-07-20 16:05:17 +00:00
// Module 4530 (BillingPlatformUtils)
import PlatformUtils from "PlatformUtils" /* 1364 */;
import MetaQuestUtils from "MetaQuestUtils" /* 1610 */;
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() {
return !MetaQuestUtils.isMetaQuest();
2026-07-20 16:05:17 +00:00
};
export const isGooglePlayBillingSupported = function isGooglePlayBillingSupported() {
let isAndroidResult = PlatformUtils.isAndroid();
2026-07-20 16:05:17 +00:00
if (isAndroidResult) {
isAndroidResult = !MetaQuestUtils.isMetaQuest();
const tmpResult = MetaQuestUtils;
2026-07-20 16:05:17 +00:00
}
return isAndroidResult;
};
export const isCollectibleGiftingSupported = function isCollectibleGiftingSupported() {
return !MetaQuestUtils.isMetaQuest();
2026-07-20 16:05:17 +00:00
};
export const isSocialLayerStorefrontGiftingSupported = function isSocialLayerStorefrontGiftingSupported() {
return !MetaQuestUtils.isMetaQuest();
2026-08-24 06:08:38 +00:00
};
export const isSocialLayerStorefrontPurchaseSupported = function isSocialLayerStorefrontPurchaseSupported() {
return !MetaQuestUtils.isMetaQuest();
2026-07-20 16:05:17 +00:00
};