addListener static method

void addListener(
  1. VoidCallback listener
)

the listener wiil be nitified after system volume changed. the value after change can be obtained through FijkVolume.value

Implementation

static void addListener(VoidCallback listener) {
  FijkPlugin._onLoad("vol");
  _notifer.addListener(listener);
}