StateListener


interface StateListener
android.service.chooser.ChooserSession.StateListener

A callback interface for Chooser session state updates.

Summary

Public methods
abstract Unit

Gets invoked when the Chooser bounds are changed.

abstract Unit

Gets invoked when ChooserManager lifecycle state has changed.

Public methods

onBoundsChanged

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

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, or android.service.chooser.ChooserSession#STATE_CLOSED