-
- All Implemented Interfaces:
-
com.datadog.android.privacy.TrackingConsentProviderCallback
@Deprecated(message = Datadog Plugins will be removed in SDK v2.0.0. You will then need to write your own Feature (check our own code for guidance).) public interface DatadogPlugin implements TrackingConsentProviderCallback
DatadogPlugin interface. You can attach as many as you want for any existing feature in the SDK.
-
-
Method Summary
Modifier and Type Method Description abstract Unitregister(DatadogPluginConfig config)Registers this plugin. abstract Unitunregister()Unregisters this plugin. abstract UnitonContextChanged(DatadogContext context)Notify that the current context of the library was updated by one or more of the features. -
-
Method Detail
-
register
abstract Unit register(DatadogPluginConfig config)
Registers this plugin. This will be called when the feature for which this plugin was assigned will be initialised.
- Parameters:
config- the DatadogPluginConfig
-
unregister
abstract Unit unregister()
Unregisters this plugin. This will be called when the feature for which this plugin was assigned will be stopped.
-
onContextChanged
abstract Unit onContextChanged(DatadogContext context)
Notify that the current context of the library was updated by one or more of the features. This method is always called from a worker thread.
- Parameters:
context- the updated DatadogContext.
-
-
-
-