UNPKG

@appzung/react-native-code-push

Version:

React Native plugin for the CodePush service

24 lines (21 loc) 816 B
"use strict"; import { NativeRNAppZungCodePushModule } from "./internals/NativeRNAppZungCodePushModule.js"; import { reloadCachedConfiguration } from "./internals/getConfiguration.js"; /** * Controls telemetry reporting. * * @param enabled - When false, updates on this device will stop appearing as failed, pending or succeeded in analytics. */ export async function setTelemetryEnabled(enabled) { await NativeRNAppZungCodePushModule.setTelemetryEnabled(enabled); await reloadCachedConfiguration(); } /** * Gets the current telemetry enabled status. * * When setTelemetryEnabled has never been enabled, returns the default value set in your configuration. */ export function getTelemetryEnabled() { return NativeRNAppZungCodePushModule.getTelemetryEnabled(); } //# sourceMappingURL=telemetry.js.map