Package com.vaadin.copilot
Class CopilotStatus
java.lang.Object
com.vaadin.copilot.CopilotStatus
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisEnabled(com.vaadin.flow.server.VaadinContext context) Returns whether Copilot is enabled for the given context.static booleanstatic voidsetHiddenByUser(boolean hiddenByUser)
-
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.enableproperty is set tofalse.- 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()
-