shutdown (iOS SDK API)

Syntax

+ (void)shutdown;

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

Requirements

Agent version 7.4.4 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

Objective-C

Method:

+ (void) shutdown();

Example:

[NewRelic shutdown];

Swift

Method:

NewRelic.shutdown() -> Void

Example:

NewRelic.shutdown()