36 lines
1.4 KiB
JavaScript
36 lines
1.4 KiB
JavaScript
// Metro module 16290 (f16291).
|
|
import { Platform } from "react-native";
|
|
import { NitroModules } from "./Module3921";
|
|
import { ageRangeThresholdManager } from "./AgeRangeThresholdManager";
|
|
import { getIsConsideredOlderThanAndroid } from "./Module16292";
|
|
import * as _Module16293 from "./Module16293";
|
|
let c11706_3;
|
|
let c11707_0;
|
|
let env11706 = {};
|
|
export async function getAndroidPlayAgeRangeStatus() {
|
|
return await c11706_3.getPlayAgeRangeDeclaration();
|
|
}
|
|
Platform;
|
|
c11706_3 = NitroModules.createHybridObject("PlayAgeRangeDeclaration");
|
|
c11707_0 = void 0;
|
|
c11707_0 = async (c28328_0) => {
|
|
let c28328_2;
|
|
c28328_2 = void 0;
|
|
let c31025_0 = c28328_0;
|
|
let c31025_1 = await getAndroidPlayAgeRangeStatus();
|
|
return getIsConsideredOlderThanAndroid(c31025_1, c31025_0);
|
|
};
|
|
export async function getAppleDeclaredAgeRangeStatus() {
|
|
const thresholds = ageRangeThresholdManager.getThresholds();
|
|
return await c11706_3.requestDeclaredAgeRange(thresholds[0], thresholds[1], thresholds[2]);
|
|
}
|
|
export const setAgeRangeThresholds = (a0) => {
|
|
ageRangeThresholdManager.setAgeRangeThresholds(a0);
|
|
};
|
|
export function getIsConsideredOlderThan(a0) {
|
|
const apply = c11707_0.apply;
|
|
return c11707_0.apply(this, arguments);
|
|
}
|
|
export const PlayAgeRangeDeclarationUserStatus = _Module16293.PlayAgeRangeDeclarationUserStatus;
|
|
export const PlayAgeRangeDeclarationUserStatusString = _Module16293.PlayAgeRangeDeclarationUserStatusString;
|