| Package | Description |
|---|---|
| com.holonplatform.vaadin.flow.device |
| Modifier and Type | Method and Description |
|---|---|
static DeviceInfo |
DeviceInfo.create(com.vaadin.flow.component.UI ui,
UserAgentInspector userAgentInspector)
Create a new
DeviceInfo for given UI, using the provided UserAgentInspector. |
static DeviceInfo |
DeviceInfo.create(com.vaadin.flow.component.UI ui,
com.vaadin.flow.server.VaadinRequest request)
Create a new
DeviceInfo for given UI, using the provided VaadinRequest to configure a default
UserAgentInspector. |
static DeviceInfo |
DeviceInfo.require()
Get the
DeviceInfo for the current UI, throwing a IllegalStateException if not available. |
| Modifier and Type | Method and Description |
|---|---|
static Optional<DeviceInfo> |
DeviceInfo.get()
Get the
DeviceInfo for the current UI, if available. |
static Optional<DeviceInfo> |
DeviceInfo.get(com.vaadin.flow.component.UI ui)
Get the
DeviceInfo for given UI, if available. |
Copyright © 2019 The Holon Platform. All rights reserved.