How to use the appcenter-analytics.setEnabled function in appcenter-analytics

To help you get started, we’ve selected a few appcenter-analytics examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / appcenter-sdk-react-native / TestApp / app / screens / AnalyticsScreen.js View on Github external
toggle: async () => {
                    await Analytics.setEnabled(!this.state.analyticsEnabled);
                    const analyticsEnabled = await Analytics.isEnabled();
                    this.setState({ analyticsEnabled });
                  }
                },
github microsoft / appcenter-sdk-react-native / TestApp34 / AnalyticsScreen.js View on Github external
async toggleEnabled() {
    await Analytics.setEnabled(!this.state.analyticsEnabled);

    const analyticsEnabled = await Analytics.isEnabled();
    this.setState({ analyticsEnabled });
  }
github microsoft / appcenter-sdk-react-native / TestApp / AnalyticsScreen.js View on Github external
async toggleEnabled() {
    await Analytics.setEnabled(!this.state.analyticsEnabled);

    const analyticsEnabled = await Analytics.isEnabled();
    this.setState({ analyticsEnabled });
  }
github microsoft / appcenter-sdk-react-native / TestAppTypescript / src / AnalyticsScreen.tsx View on Github external
async toggleEnabled() {
    await Analytics.setEnabled(!this.state.analyticsEnabled);

    const analyticsEnabled = await Analytics.isEnabled();
    this.setState({ analyticsEnabled });
  }
github punksta / Cat-or-dog / src / utils / integrations.js View on Github external
export const setUpEvents = async () => {
	const isEnabled = await isEventsEnabled();
	await Analitics.setEnabled(isEnabled);
};
github microsoft / appcenter-sdk-react-native / DemoApp / app / screens / AnalyticsScreen.js View on Github external
toggle: async () => {
                    await Analytics.setEnabled(!this.state.analyticsEnabled);
                    const analyticsEnabled = await Analytics.isEnabled();
                    this.setState({ analyticsEnabled });
                  }
                },
github microsoft / appcenter-sdk-react-native / BrownfieldTestApp / AnalyticsScreen.js View on Github external
async toggleEnabled() {
    await Analytics.setEnabled(!this.state.analyticsEnabled);

    const analyticsEnabled = await Analytics.isEnabled();
    this.setState({ analyticsEnabled });
  }

appcenter-analytics

React Native plugin for AppCenter Analytics

MIT
Latest version published 2 months ago

Package Health Score

81 / 100
Full package analysis