Interface PWA
public interface PWA
Interface for reading progressive web apps configuration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the manifest file that provides information about the PWAstatic final StringName of the property that defines if PWA is enabled for the website.static final StringName of the property that defines the PWA iconstatic final StringName of the property that defines the start URL of this PWAstatic final StringName of the property that defines the theme color used. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringThe path to the icon of this PWAdefault StringThe relative path to the web manifestdefault StringThe relative path to the service workerdefault StringThe theme color of the site sometimes used to color the address bar of the browserdefault booleanReturns true if PWA features are enabled false otherwise
-
Field Details
-
PN_PWA_ENABLED
Name of the property that defines if PWA is enabled for the website.- Since:
- com.adobe.cq.wcm.core.components.models 12.19.0
- See Also:
-
PN_PWA_START_URL
Name of the property that defines the start URL of this PWA- Since:
- com.adobe.cq.wcm.core.components.models 12.19.0
- See Also:
-
PN_PWA_THEME_COLOR
Name of the property that defines the theme color used.- Since:
- com.adobe.cq.wcm.core.components.models 12.19.0
- See Also:
-
PN_PWA_ICON_PATH
Name of the property that defines the PWA icon- Since:
- com.adobe.cq.wcm.core.components.models 12.19.0
- See Also:
-
MANIFEST_NAME
Name of the manifest file that provides information about the PWA- Since:
- com.adobe.cq.wcm.core.components.models 12.19.0
- See Also:
-
-
Method Details
-
isEnabled
default boolean isEnabled()Returns true if PWA features are enabled false otherwise- Returns:
- whether PWA is enabled or not
- Since:
- com.adobe.cq.wcm.core.components.models 12.19.0
-
getThemeColor
The theme color of the site sometimes used to color the address bar of the browser- Returns:
- A Hex String that represents the theme color for this site
- Since:
- com.adobe.cq.wcm.core.components.models 12.19.0
-
getIconPath
The path to the icon of this PWA- Returns:
- A String that represents the relative path to the icon of this site
- Since:
- com.adobe.cq.wcm.core.components.models 12.19.0
-
getManifestPath
The relative path to the web manifest- Returns:
- A String that represents the relative path to the web manifest of this site
- Since:
- com.adobe.cq.wcm.core.components.models 12.19.0
-
getServiceWorkerPath
The relative path to the service worker- Returns:
- A String that represents the path to the service worker used by this site
- Since:
- com.adobe.cq.wcm.core.components.models 12.19.0
-