How to use the appcenter.setEnabled function in appcenter

To help you get started, we’ve selected a few appcenter 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 / MobileCenterScreen.js View on Github external
async toggleEnabled() {
    await AppCenter.setEnabled(!this.state.appCenterEnabled);

    const appCenterEnabled = await AppCenter.isEnabled();
    this.setState({ appCenterEnabled });
  }
github microsoft / appcenter-sdk-react-native / DemoApp / app / screens / AppCenterScreen.js View on Github external
toggle: async () => {
                    await AppCenter.setEnabled(!this.state.appCenterEnabled);
                    const appCenterEnabled = await AppCenter.isEnabled();
                    const authEnabled = await Auth.isEnabled();
                    const pushEnabled = await Push.isEnabled();
                    this.setState({ appCenterEnabled, authEnabled, pushEnabled });
                  }
                },
github microsoft / appcenter-sdk-react-native / TestApp / app / screens / AppCenterScreen.js View on Github external
toggle: async () => {
                    await AppCenter.setEnabled(!this.state.appCenterEnabled);
                    const appCenterEnabled = await AppCenter.isEnabled();
                    const authEnabled = await Auth.isEnabled();
                    const pushEnabled = await Push.isEnabled();
                    this.setState({ appCenterEnabled, authEnabled, pushEnabled });
                  }
                },
github microsoft / appcenter-sdk-react-native / TestApp34 / AppCenterScreen.js View on Github external
async toggleEnabled() {
    await AppCenter.setEnabled(!this.state.appCenterEnabled);

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

    const appCenterEnabled = await AppCenter.isEnabled();
    this.setState({ appCenterEnabled });
  }
github microsoft / appcenter-sdk-react-native / DemoApp / AppCenterScreen.js View on Github external
async toggleEnabled() {
    await AppCenter.setEnabled(!this.state.appCenterEnabled);

    const appCenterEnabled = await AppCenter.isEnabled();
    this.setState({ appCenterEnabled });
  }