Syntax
- (void) enableFeatures:(NRMAFeatureFlags)featureFlags;
Set this bit-wise flag to enable features.
Requirements
Compatible with all agent versions.
Description
Most of the features in the New Relic iOS agent are enabled by default. The enableFeatures
API can be used if you want to enable those features that are not enabled by default.
For more information on which features are enabled by default 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 enable features. |
Examples
Objective-C
Method:
+[NewRelic enableFeatures:(NRMAFeatureFlags)flags];
Examples:
Objective-C example:
[NewRelic enableFeatures:NRFeatureFlag_SwiftInteractionTracing | NRFeatureFlag_GestureInstrumentation];
Swift example:
NewRelic.enableFeatures([ NRMAFeatureFlags.NRFeatureFlag_SwiftInteractionTracing, NRMAFeatureFlags.NRFeatureFlag_GestureInstrumentation ])