setOnStateChangeListener

Sets the listener to be notified when the state of an app or all apps changes.

This listener will receive callbacks when:

  • The selection state of all apps changes via setStateAll.

  • The selection state of an individual app changes via setState.

Parameters

listener

The listener to set. Pass null to remove the current listener.