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