How to integrate android visualizer into unity?

I am making an android app, and want to visualize audio playing on the whole system.
Android has a pre-built class called visualizer specifically for this purpose, found here;
How would I go about integrating this into unity so it can be used?

To use Android’s classes, you could create a plugin for it. For more info on plugins in Android, check this: