ENGLISH·COURSE API
    Preparing search index...
    InstallOffer: { canInstall: false } | { canInstall: true; accept: () => void }

    What the browser is currently offering.

    Type Declaration

    • { canInstall: false }
    • { canInstall: true; accept: () => void }
      • ReadonlycanInstall: true
      • Readonlyaccept: () => void

        Opens the browser's install dialog. Call it from the learner's gesture.

    A union rather than a nullable callback: accept exists only in the state where there is something to accept, so no caller has to guard against calling it into the void.