API / geotoolkit3d / tool / devicesupport / DeviceSupportRegistry / DeviceSupportRegistry
devicesupport.DeviceSupportRegistry.DeviceSupportRegistry
This class manages 'device-support' classes.
A devicesupport class is a class that is able to listen to the specific events fired by the browser.
For example MSPointers or Touch events.
Multiple implementation can coexist and this class will provide to the client code the implementation the 'most adapted' to the current browser.
To determine which device support to use, this class prompts each devicesupport if it can works in the current environment.
device.isSupported()
The first devicesupport to answer 'true' will be picked.
If no device answers true, the default device support is used as a fallback.
Constructors
Methods
▸ getClassName(): string
string
▸ Static getAllDeviceSupport(): AbstractDeviceSupportClass[]
Gets the array containing the constructors/class that could be instantiated and used as a device support.
▸ Static getClassName(): string
string
▸ Static getDeviceSupport(): AbstractDeviceSupportClass
Finds a devicesupport that is supported in the current browser.
▸ Static setDefaultDeviceSupport(devicesupport): void
Sets the default device support class
| Name | Type | Description |
|---|---|---|
devicesupport | AbstractDeviceSupportClass | The constructor/class to instantiate and use as the default device support |
void