Class CopilotStatus

java.lang.Object
com.vaadin.copilot.CopilotStatus

public class CopilotStatus extends Object
  • Method Details

    • isEnabled

      public static boolean isEnabled(com.vaadin.flow.server.VaadinContext context)
      Returns whether Copilot is enabled for the given context.

      Copilot is disabled when the user has hidden it, when the application runs in production mode, or when the copilot.enable property is set to false.

      Parameters:
      context - the Vaadin context
      Returns:
      true if Copilot is enabled, false otherwise
    • setHiddenByUser

      public static void setHiddenByUser(boolean hiddenByUser)
    • isHiddenByUser

      public static boolean isHiddenByUser()