Druid-Extension/api/components/base/back_handler_api.md
2025-03-18 22:00:51 +02:00

664 B

druid.back_handler API

at /druid/base/back_handler.lua

The component that handles the back handler action, like backspace or android back button

Functions

Fields

init


back_handler:init([callback], [params])
  • Parameters:
    • [callback] (function|nil): The callback to call when the back handler is triggered
    • [params] (any): Custom args to pass in the callback

Fields

  • on_back (event): Trigger on back handler action, fun(self, params)

  • params (any): Custom args to pass in the callback