Added in API level 36.1
    StateListener
interface StateListener
| android.service.chooser.ChooserSession.StateListener | 
A callback interface for Chooser session state updates.
Summary
| Public methods | |
|---|---|
| abstract Unit | onBoundsChanged(bounds: Rect)Gets invoked when the Chooser bounds are changed. | 
| abstract Unit | onStateChanged(state: Int)Gets invoked when ChooserManager lifecycle state has changed. | 
Public methods
onBoundsChanged
Added in API level 36.1
      abstract fun onBoundsChanged(bounds: Rect): Unit
Gets invoked when the Chooser bounds are changed. The rect parameter represents Chooser window bounds in pixels.
| Parameters | |
|---|---|
| bounds | Rect: This value cannot be null. | 
onStateChanged
Added in API level 36.1
      abstract fun onStateChanged(state: Int): Unit
Gets invoked when ChooserManager lifecycle state has changed.
| Parameters | |
|---|---|
| state | Int: Value is android.service.chooser.ChooserSession#STATE_INITIALIZED,android.service.chooser.ChooserSession#STATE_STARTED, orandroid.service.chooser.ChooserSession#STATE_CLOSED | 
