Added in version 36.1

ChooserSession.StateListener


public static interface ChooserSession.StateListener

android.service.chooser.ChooserSession.StateListener


A callback interface for Chooser session state updates.

Summary

Public methods

abstract void onBoundsChanged(Rect bounds)

Gets invoked when the Chooser bounds are changed.

abstract void onStateChanged(int state)

Gets invoked when ChooserManager lifecycle state has changed.

Public methods

onBoundsChanged

Added in version 36.1
public abstract void onBoundsChanged (Rect bounds)

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 version 36.1
public abstract void onStateChanged (int state)

Gets invoked when ChooserManager lifecycle state has changed.

Parameters
state int: Value is ChooserSession.STATE_INITIALIZED, ChooserSession.STATE_STARTED, or ChooserSession.STATE_CLOSED