puppeteer/assets/js/445edf82.6ced89d5.js

2 lines
6.0 KiB
JavaScript
Raw Normal View History

/*! For license information please see 445edf82.6ced89d5.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[36872],{81905:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>l,default:()=>d,frontMatter:()=>s,metadata:()=>r,toc:()=>p});var i=a(85893),o=a(11151);const s={sidebar_label:"KnownDevices"},l="KnownDevices variable",r={id:"api/puppeteer.knowndevices",title:"KnownDevices variable",description:"A list of devices to be used with Page.emulate().",source:"@site/versioned_docs/version-22.8.2/api/puppeteer.knowndevices.md",sourceDirName:"api",slug:"/api/puppeteer.knowndevices",permalink:"/api/puppeteer.knowndevices",draft:!1,unlisted:!1,tags:[],version:"22.8.2",frontMatter:{sidebar_label:"KnownDevices"},sidebar:"api",previous:{title:"KeyPressOptions",permalink:"/api/puppeteer.keypressoptions"},next:{title:"launch",permalink:"/api/puppeteer.launch"}},c={},p=[{value:"Signature:",id:"signature",level:4},{value:"Example",id:"example",level:2}];function t(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h4:"h4",p:"p",pre:"pre",...(0,o.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{id:"knowndevices-variable",children:"KnownDevices variable"}),"\n",(0,i.jsxs)(n.p,{children:["A list of devices to be used with ",(0,i.jsx)(n.a,{href:"/api/puppeteer.page.emulate",children:"Page.emulate()"}),"."]}),"\n",(0,i.jsx)(n.h4,{id:"signature",children:"Signature:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-typescript",children:"KnownDevices: Readonly<\n Record<\n | 'Blackberry PlayBook'\n | 'Blackberry PlayBook landscape'\n | 'BlackBerry Z30'\n | 'BlackBerry Z30 landscape'\n | 'Galaxy Note 3'\n | 'Galaxy Note 3 landscape'\n | 'Galaxy Note II'\n | 'Galaxy Note II landscape'\n | 'Galaxy S III'\n | 'Galaxy S III landscape'\n | 'Galaxy S5'\n | 'Galaxy S5 landscape'\n | 'Galaxy S8'\n | 'Galaxy S8 landscape'\n | 'Galaxy S9+'\n | 'Galaxy S9+ landscape'\n | 'Galaxy Tab S4'\n | 'Galaxy Tab S4 landscape'\n | 'iPad'\n | 'iPad landscape'\n | 'iPad (gen 6)'\n | 'iPad (gen 6) landscape'\n | 'iPad (gen 7)'\n | 'iPad (gen 7) landscape'\n | 'iPad Mini'\n | 'iPad Mini landscape'\n | 'iPad Pro'\n | 'iPad Pro landscape'\n | 'iPad Pro 11'\n | 'iPad Pro 11 landscape'\n | 'iPhone 4'\n | 'iPhone 4 landscape'\n | 'iPhone 5'\n | 'iPhone 5 landscape'\n | 'iPhone 6'\n | 'iPhone 6 landscape'\n | 'iPhone 6 Plus'\n | 'iPhone 6 Plus landscape'\n | 'iPhone 7'\n | 'iPhone 7 landscape'\n | 'iPhone 7 Plus'\n | 'iPhone 7 Plus landscape'\n | 'iPhone 8'\n | 'iPhone 8 landscape'\n | 'iPhone 8 Plus'\n | 'iPhone 8 Plus landscape'\n | 'iPhone SE'\n | 'iPhone SE landscape'\n | 'iPhone X'\n | 'iPhone X landscape'\n | 'iPhone XR'\n | 'iPhone XR landscape'\n | 'iPhone 11'\n | 'iPhone 11 landscape'\n | 'iPhone 11 Pro'\n | 'iPhone 11 Pro landscape'\n | 'iPhone 11 Pro Max'\n | 'iPhone 11 Pro Max landscape'\n | 'iPhone 12'\n | 'iPhone 12 landscape'\n | 'iPhone 12 Pro'\n | 'iPhone 12 Pro landscape'\n | 'iPhone 12 Pro Max'\n | 'iPhone 12 Pro Max landscape'\n | 'iPhone 12 Mini'\n | 'iPhone 12 Mini landscape'\n | 'iPhone 13'\n | 'iPhone 13 landscape'\n | 'iPhone 13 Pro'\n | 'iPhone 13 Pro landscape'\n | 'iPhone 13 Pro Max'\n | 'iPhone 13 Pro Max landscape'\n | 'iPhone 13 Mini'\n | 'iPhone 13 Mini landscape'\n | 'JioPhone 2'\n | 'JioPhone 2 landscape'\n | 'Kindle Fire HDX'\n | 'Kindle Fire HDX landscape'\n | 'LG Optimus L70'\n | 'LG Optimus L70 landscape'\n | 'Microsoft Lumia 550'\n | 'Microsoft Lumia 950'\n | 'Microsoft Lumia 950 landscape'\n | 'Nexus 10'\n | 'Nexus 10 landscape'\n | 'Nexus 4'\n | 'Nexus 4 landscape'\n | 'Nexus 5'\n | 'Nexus 5 landscape'\n | 'Nexus 5X'\n | 'Nexus 5X landscape'\n | 'Nexus 6'\n | 'Nexus 6 landscape'\n | 'Nexus 6P'\n | 'Nexus 6P landscape'\n | 'Nexus 7'\n | 'Nexus 7 landscape'\n | 'Nokia Lumia 520'\n | 'Nokia Lumia 520 landscape'\n | 'Nokia N9