Function fromForeground

  • Register a callback function that handles requests from the foreground.

    Type Parameters

    • T = unknown

    Parameters

    Returns Promise<boolean>

    A Promise that resolves to true if the request was handled successfully, and false otherwise.