Package 

Interface DatadogPlugin

  • 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 Unit register(DatadogPluginConfig config) Registers this plugin.
      abstract Unit unregister() Unregisters this plugin.
      abstract Unit onContextChanged(DatadogContext context) Notify that the current context of the library was updated by one or more of the features.
      • Methods inherited from class com.datadog.android.plugin.DatadogPlugin

        onConsentUpdated
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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.