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()