Package 

Interface FeatureSdkCore

  • All Implemented Interfaces:
    com.datadog.android.api.SdkCore

    
    public interface FeatureSdkCore
     implements SdkCore
                        

    Extension of SdkCore containing the necessary methods for the features development.

    SDK core is always guaranteed to implement this interface.

    • Method Detail

      • registerFeature

         abstract Unit registerFeature(Feature feature)

        Registers a feature to this instance of the Datadog SDK.

        Parameters:
        feature - the feature to be registered.
      • getFeature

         abstract FeatureScope getFeature(String featureName)

        Retrieves a registered feature.

        Parameters:
        featureName - the name of the feature to retrieve
      • updateFeatureContext

         abstract Unit updateFeatureContext(String featureName, Function1<Map<String, Object>, Unit> updateCallback)

        Updates the context if exists with the new entries. If there is no context yet for the provided featureName, a new one will be created.

        Parameters:
        featureName - Feature name.
        updateCallback - Provides current feature context for the update.
      • removeEventReceiver

         abstract Unit removeEventReceiver(String featureName)

        Removes events receive for the given feature.

        Parameters:
        featureName - Feature name.
      • getName

         abstract String getName()

        Name of the current SDK instance.

      • getTime

         abstract TimeInfo getTime()

        The current time (both device and server).

      • getService

         abstract String getService()

        Name of the service (given during the SDK initialization, otherwise package name is used).