mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
refactor!: remove devices in favor of KnownDevices (#11787)
This commit is contained in:
parent
53c9134809
commit
eb360e3a76
@ -156,7 +156,6 @@ sidebar_label: API
|
|||||||
| [connect](./puppeteer.connect.md) | |
|
| [connect](./puppeteer.connect.md) | |
|
||||||
| [DEFAULT_INTERCEPT_RESOLUTION_PRIORITY](./puppeteer.default_intercept_resolution_priority.md) | The default cooperative request interception resolution priority |
|
| [DEFAULT_INTERCEPT_RESOLUTION_PRIORITY](./puppeteer.default_intercept_resolution_priority.md) | The default cooperative request interception resolution priority |
|
||||||
| [defaultArgs](./puppeteer.defaultargs.md) | |
|
| [defaultArgs](./puppeteer.defaultargs.md) | |
|
||||||
| [devices](./puppeteer.devices.md) | |
|
|
||||||
| [executablePath](./puppeteer.executablepath.md) | |
|
| [executablePath](./puppeteer.executablepath.md) | |
|
||||||
| [KnownDevices](./puppeteer.knowndevices.md) | A list of devices to be used with [Page.emulate()](./puppeteer.page.emulate.md). |
|
| [KnownDevices](./puppeteer.knowndevices.md) | A list of devices to be used with [Page.emulate()](./puppeteer.page.emulate.md). |
|
||||||
| [launch](./puppeteer.launch.md) | |
|
| [launch](./puppeteer.launch.md) | |
|
||||||
|
@ -1,134 +0,0 @@
|
|||||||
---
|
|
||||||
sidebar_label: devices
|
|
||||||
---
|
|
||||||
|
|
||||||
# devices variable
|
|
||||||
|
|
||||||
> Warning: This API is now obsolete.
|
|
||||||
>
|
|
||||||
> Import [KnownDevices](./puppeteer.knowndevices.md)
|
|
||||||
|
|
||||||
#### Signature:
|
|
||||||
|
|
||||||
```typescript
|
|
||||||
devices: Readonly<
|
|
||||||
Record<
|
|
||||||
| 'Blackberry PlayBook'
|
|
||||||
| 'Blackberry PlayBook landscape'
|
|
||||||
| 'BlackBerry Z30'
|
|
||||||
| 'BlackBerry Z30 landscape'
|
|
||||||
| 'Galaxy Note 3'
|
|
||||||
| 'Galaxy Note 3 landscape'
|
|
||||||
| 'Galaxy Note II'
|
|
||||||
| 'Galaxy Note II landscape'
|
|
||||||
| 'Galaxy S III'
|
|
||||||
| 'Galaxy S III landscape'
|
|
||||||
| 'Galaxy S5'
|
|
||||||
| 'Galaxy S5 landscape'
|
|
||||||
| 'Galaxy S8'
|
|
||||||
| 'Galaxy S8 landscape'
|
|
||||||
| 'Galaxy S9+'
|
|
||||||
| 'Galaxy S9+ landscape'
|
|
||||||
| 'Galaxy Tab S4'
|
|
||||||
| 'Galaxy Tab S4 landscape'
|
|
||||||
| 'iPad'
|
|
||||||
| 'iPad landscape'
|
|
||||||
| 'iPad (gen 6)'
|
|
||||||
| 'iPad (gen 6) landscape'
|
|
||||||
| 'iPad (gen 7)'
|
|
||||||
| 'iPad (gen 7) landscape'
|
|
||||||
| 'iPad Mini'
|
|
||||||
| 'iPad Mini landscape'
|
|
||||||
| 'iPad Pro'
|
|
||||||
| 'iPad Pro landscape'
|
|
||||||
| 'iPad Pro 11'
|
|
||||||
| 'iPad Pro 11 landscape'
|
|
||||||
| 'iPhone 4'
|
|
||||||
| 'iPhone 4 landscape'
|
|
||||||
| 'iPhone 5'
|
|
||||||
| 'iPhone 5 landscape'
|
|
||||||
| 'iPhone 6'
|
|
||||||
| 'iPhone 6 landscape'
|
|
||||||
| 'iPhone 6 Plus'
|
|
||||||
| 'iPhone 6 Plus landscape'
|
|
||||||
| 'iPhone 7'
|
|
||||||
| 'iPhone 7 landscape'
|
|
||||||
| 'iPhone 7 Plus'
|
|
||||||
| 'iPhone 7 Plus landscape'
|
|
||||||
| 'iPhone 8'
|
|
||||||
| 'iPhone 8 landscape'
|
|
||||||
| 'iPhone 8 Plus'
|
|
||||||
| 'iPhone 8 Plus landscape'
|
|
||||||
| 'iPhone SE'
|
|
||||||
| 'iPhone SE landscape'
|
|
||||||
| 'iPhone X'
|
|
||||||
| 'iPhone X landscape'
|
|
||||||
| 'iPhone XR'
|
|
||||||
| 'iPhone XR landscape'
|
|
||||||
| 'iPhone 11'
|
|
||||||
| 'iPhone 11 landscape'
|
|
||||||
| 'iPhone 11 Pro'
|
|
||||||
| 'iPhone 11 Pro landscape'
|
|
||||||
| 'iPhone 11 Pro Max'
|
|
||||||
| 'iPhone 11 Pro Max landscape'
|
|
||||||
| 'iPhone 12'
|
|
||||||
| 'iPhone 12 landscape'
|
|
||||||
| 'iPhone 12 Pro'
|
|
||||||
| 'iPhone 12 Pro landscape'
|
|
||||||
| 'iPhone 12 Pro Max'
|
|
||||||
| 'iPhone 12 Pro Max landscape'
|
|
||||||
| 'iPhone 12 Mini'
|
|
||||||
| 'iPhone 12 Mini landscape'
|
|
||||||
| 'iPhone 13'
|
|
||||||
| 'iPhone 13 landscape'
|
|
||||||
| 'iPhone 13 Pro'
|
|
||||||
| 'iPhone 13 Pro landscape'
|
|
||||||
| 'iPhone 13 Pro Max'
|
|
||||||
| 'iPhone 13 Pro Max landscape'
|
|
||||||
| 'iPhone 13 Mini'
|
|
||||||
| 'iPhone 13 Mini landscape'
|
|
||||||
| 'JioPhone 2'
|
|
||||||
| 'JioPhone 2 landscape'
|
|
||||||
| 'Kindle Fire HDX'
|
|
||||||
| 'Kindle Fire HDX landscape'
|
|
||||||
| 'LG Optimus L70'
|
|
||||||
| 'LG Optimus L70 landscape'
|
|
||||||
| 'Microsoft Lumia 550'
|
|
||||||
| 'Microsoft Lumia 950'
|
|
||||||
| 'Microsoft Lumia 950 landscape'
|
|
||||||
| 'Nexus 10'
|
|
||||||
| 'Nexus 10 landscape'
|
|
||||||
| 'Nexus 4'
|
|
||||||
| 'Nexus 4 landscape'
|
|
||||||
| 'Nexus 5'
|
|
||||||
| 'Nexus 5 landscape'
|
|
||||||
| 'Nexus 5X'
|
|
||||||
| 'Nexus 5X landscape'
|
|
||||||
| 'Nexus 6'
|
|
||||||
| 'Nexus 6 landscape'
|
|
||||||
| 'Nexus 6P'
|
|
||||||
| 'Nexus 6P landscape'
|
|
||||||
| 'Nexus 7'
|
|
||||||
| 'Nexus 7 landscape'
|
|
||||||
| 'Nokia Lumia 520'
|
|
||||||
| 'Nokia Lumia 520 landscape'
|
|
||||||
| 'Nokia N9'
|
|
||||||
| 'Nokia N9 landscape'
|
|
||||||
| 'Pixel 2'
|
|
||||||
| 'Pixel 2 landscape'
|
|
||||||
| 'Pixel 2 XL'
|
|
||||||
| 'Pixel 2 XL landscape'
|
|
||||||
| 'Pixel 3'
|
|
||||||
| 'Pixel 3 landscape'
|
|
||||||
| 'Pixel 4'
|
|
||||||
| 'Pixel 4 landscape'
|
|
||||||
| 'Pixel 4a (5G)'
|
|
||||||
| 'Pixel 4a (5G) landscape'
|
|
||||||
| 'Pixel 5'
|
|
||||||
| 'Pixel 5 landscape'
|
|
||||||
| 'Moto G4'
|
|
||||||
| 'Moto G4 landscape',
|
|
||||||
Device
|
|
||||||
>
|
|
||||||
>;
|
|
||||||
```
|
|
@ -1543,10 +1543,3 @@ for (const device of knownDevices) {
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export const KnownDevices = Object.freeze(knownDevicesByName);
|
export const KnownDevices = Object.freeze(knownDevicesByName);
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Import {@link KnownDevices}
|
|
||||||
*
|
|
||||||
* @public
|
|
||||||
*/
|
|
||||||
export const devices = KnownDevices;
|
|
||||||
|
Loading…
Reference in New Issue
Block a user