| Package | Description |
|---|---|
| com.holonplatform.vaadin.device |
| Modifier and Type | Method and Description |
|---|---|
static DeviceInfo |
DeviceInfo.create(String userAgentHeader,
String httpAcceptHeader)
Build a DeviceInfo instance using given header values
|
static DeviceInfo |
DeviceInfo.create(com.vaadin.server.VaadinRequest request)
Build a DeviceInfo instance using a
VaadinRequest |
static DeviceInfo |
DeviceInfo.require()
Get the current DeviceInfo instance, or throw an
IllegalStateException if not available. |
| Modifier and Type | Method and Description |
|---|---|
static Optional<DeviceInfo> |
DeviceInfo.ensureInited(com.vaadin.server.VaadinSession session)
Ensure that a
DeviceInfo is available from given Vaadin session. |
static Optional<DeviceInfo> |
DeviceInfo.get()
Get the current DeviceInfo instance, if available.
|
Copyright © 2019 The Holon Platform. All rights reserved.