Package 

Interface Plugin


  • 
    public interface Plugin
    
                        

    A plugin interface that provides a way to extend the functionality of the performance monitoring library. Plugins are added to the library via the PerformanceConfiguration.addPlugin method, and are called when the library is started.

    • Method Summary

      Modifier and Type Method Description
      Unit install(PluginContext ctx) Called when the plugin is loaded.
      Unit start() Start the plugin.
      • Methods inherited from class java.lang.Object

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

      • install

         Unit install(PluginContext ctx)

        Called when the plugin is loaded. This is where you can set up any necessary resources or configurations for the plugin. This is called synchronously as part of BugsnagPerformance.start to configure any callbacks and hooks that the plugin needs to perform its work.

        Parameters:
        ctx - The context in which the plugin is being loaded
      • start

         Unit start()

        Start the plugin. This is called after all plugins have been installed and is where you can start any background tasks or other operations that the plugin needs to perform. This is called asynchronously after BugsnagPerformance.start to allow the plugin to perform any necessary work without blocking the main thread.