@nextcloud/viewer
    Preparing search index...

    Function registerHandler

    • Register a new handler for the viewer. This needs to be called before the viewer is initialized to ensure the handler is available. So this should be called from an initialization script (OCP\Util::addInitScript).

      Parameters

      • handler: IHandler

        The handler to register

      Returns void

      if the handler is invalid