API reference
API reference
Select your platform
No SDKs available
No versions available

PanelInteractionDelegate Interface

Delegate interface for panel interaction events.
Implement this interface to receive notifications when panels with ViewRootImplInteractionExtension are detected or removed.

Signature

interface PanelInteractionDelegate

Methods

onPanelInteractionDetected ( entity , interactionExtension )
Called when a panel with a ViewRootImplInteractionExtension is detected.
Signature
abstract fun onPanelInteractionDetected(entity: Entity, interactionExtension: Any)
Parameters
entity: Entity  The panel entity
interactionExtension: Any  The ViewRootImplInteractionExtension for this panel
onPanelInteractionRemoved ( entity )
Called when a tracked panel/ViewRootImplInteractionExtension is no longer detected.
This can happen when:
  • The panel entity no longer exists
  • The panel no longer has an interaction extension
  • An activity-based panel is destroyed
Signature
abstract fun onPanelInteractionRemoved(entity: Entity)
Parameters
entity: Entity  The panel entity