• English日本語한국어
  • Log inStart now

shutdown (Android SDK API)

Syntax

NewRelic.shutdown()

Shut down the agent within the current application lifecycle during runtime.

Requirements

Agent version 6.10.0 or higher.

Description

This API provides the ability to shut down the agent within the current application lifecycle during runtime. Once the agent has shut down, it cannot be restarted within the current application lifecycle.

Examples

Shut down the Android agent

Here's an example of shutting down the agent:

NewRelic.shutdown()
Copyright © 2023 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.