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

disableFeatures (iOS SDK API)

Syntax

- (void) disableFeatures:(NRMAFeatureFlags)featureFlags;

Set this bit-wise flag to disable features.

Requirements

Compatible with all agent versions.

Description

The disableFeatures API can be used to disable features you don't want to run. For more information on the flags that can be disabled see iOS agent configuration and feature flags.

Important

This function must be called before calling startWithApplicationToken: for the settings to take effect.

Parameters

Parameter

Description

$featureFlags

NRMAFeatureFlags

Required. The bit-wise flags to disable features.

Examples

Objective-C

Method:

+[NewRelic disableFeatures:(NRMAFeatureFlags)flags];

Examples:

Objective-C example:

[NewRelic disableFeatures:NRFeatureFlag_NSURLSessionInstrumentation | NRFeatureFlag_CrashReporting];

Swift example:

NewRelic.disableFeatures([ NRMAFeatureFlags.NRFeatureFlag_CrashReporting, NRMAFeatureFlags.NRFeatureFlag_WebViewInstrumentation ])
Copyright © 2023 New Relic Inc.

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