ResponsivePaneBehaviorStrategy

Contract for drawer sizing, state transitions, and responsive constraints.

Inheritors

Functions

Link copied to clipboard
abstract fun animateOverWidthToOpened(layout: ResponsivePaneLayout, callback: ResponsivePaneSlideOffsetCallback? = null, onAnimationEnd: () -> Unit)

Snaps an oversize drawer in layout back to its opened width.

Link copied to clipboard
abstract fun animateStateTransition(layout: ResponsivePaneLayout, toState: PaneState, skipAnimation: Boolean, callback: ResponsivePaneSlideOffsetCallback? = null, onAnimationEnd: () -> Unit)

Moves the drawer in layout to toState.

Link copied to clipboard
abstract fun canOutSideTouch(): Boolean

Returns this strategy's default policy for interaction outside the drawer.

Link copied to clipboard
abstract fun cleanup()

Cancels animations and clears cached child views, retaining configurations.

Link copied to clipboard
abstract fun getDragRange(layout: ConstraintLayout): Int

Returns the signed width range for layout.

Link copied to clipboard
abstract fun getDrawerLayout(layout: ViewGroup): ViewGroup?

Returns the drawer managed within layout, or null when none is found.

Link copied to clipboard
abstract fun getDrawerPaneWidth(layout: ConstraintLayout, state: PaneState): Int

Returns the target drawer width in pixels for state within layout.

Link copied to clipboard
abstract fun getPaneConfig(paneState: PaneState): ResponsiveConfig

Returns the configuration for paneState, or an unresolved default if not initialized.

Link copied to clipboard
abstract fun getPaneState(): PaneState

Returns the settled pane state maintained by this strategy.

Link copied to clipboard
abstract fun initPaneConfig(context: Context)

Initializes state configurations from resources resolved using context.

Link copied to clipboard
abstract fun onPaneDragged(parent: ResponsivePaneLayout, offset: Float, callback: ResponsivePaneSlideOffsetCallback? = null)

Resizes the drawer within parent by a drag delta.

Link copied to clipboard
abstract fun setPaneConfig(paneState: PaneState, responsiveConfig: ResponsiveConfig)

Stores responsiveConfig for paneState without directly requesting a layout.

Link copied to clipboard
abstract fun shouldAllowDrag(): Boolean

Returns whether gesture-driven resizing is allowed.

Link copied to clipboard

Applies responsive drawer constraints to parent for the current state.