registerScreenshotTaken

open fun registerScreenshotTaken(method: Any): EventTrigger

Registers a new trigger that runs before a screenshot is taken.

Passes through two arguments:

  • The name of the screenshot

  • The screenshot event, which can be cancelled

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard