Package com.vaadin.copilot
Class CopilotStatus
java.lang.Object
com.vaadin.copilot.CopilotStatus
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisEnabled(com.vaadin.flow.server.VaadinServletContext context) Returns whether Copilot is enabled for the given context.
-
Method Details
-
isEnabled
public static boolean isEnabled(com.vaadin.flow.server.VaadinServletContext context) Returns whether Copilot is enabled for the given context.Copilot is disabled when the application runs in production mode, or when the
copilot.enableproperty is set tofalse.- Parameters:
context- the Vaadin context- Returns:
- true if Copilot is enabled, false otherwise
-