PageSourceSearch

https://pptr.dev/assets/js/c3f3c558.7902a7ea.js

js pptr.dev collected 2026-09-24 07:03:42 UTC 3,833 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["11188"],{21168(e,t,r){r.r(t),r.d(t,{metadata:()=>a,default:()=>p,frontMatter:()=>o,contentTitle:()=>i,toc:()=>d,assets:()=>s});var a=JSON.parse('{"id":"api/puppeteer.bluetoothemulation.emulateadapter","title":"BluetoothEmulation.emulateAdapter() method","description":"Emulate Bluetooth adapter. Required for bluetooth simulations See bluetooth.simulateAdapter.","source":"@site/.generated-docs/next/api/puppeteer.bluetoothemulation.emulateadapter.md","sourceDirName":"api","slug":"/api/puppeteer.bluetoothemulation.emulateadapter","permalink":"/next/api/puppeteer.bluetoothemulation.emulateadapter","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"BluetoothEmulation.emulateAdapter"},"sidebar":"api","previous":{"title":"BluetoothEmulation.disableEmulation","permalink":"/next/api/puppeteer.bluetoothemulation.disableemulation"},"next":{"title":"BluetoothEmulation.simulatePreconnectedPeripheral","permalink":"/next/api/puppeteer.bluetoothemulation.simulatepreconnectedperipheral"}}'),l=r(74848),n=r(28453);let o={sidebar_label:"BluetoothEmulation.emulateAdapter"},i="BluetoothEmulation.emulateAdapter() method",s={},d=[{value:"Signature",id:"signature",level:3},{value:"Parameters",id:"parameters",level:2}];function u(e){let t={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",...(0,n.R)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t.header,{children:(0,l.jsx)(t.h1,{id:"bluetoothemulationemulateadapter-method",children:"BluetoothEmulation.emulateAdapter() method"})}),"\n",(0,l.jsxs)(t.p,{children:["Emulate Bluetooth adapter. Required for bluetooth simulations See ",(0,l.jsx)(t.a,{href:"https://webbluetoothcg.github.io/web-bluetooth/#bluetooth-simulateAdapter-command",children:"bluetooth.simulateAdapter"}),"."]}),"\n",(0,l.jsx)(t.h3,{id:"signature",children:"Signature"}),"\n",(0,l.jsx)(t.pre,{children:(0,l.jsx)(t.code,{className:"language-typescript",children:"interface BluetoothEmulation {\n  emulateAdapter(state: AdapterState, leSupported?: boolean): Promise<void>;\n}\n"})}),"\n",(0,l.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n",(0,l.jsxs)("table",{children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{children:(0,l.jsx)(t.p,{children:"Parameter"})}),(0,l.jsx)("th",{children:(0,l.jsx)(t.p,{children:"Type"})}),(0,l.jsx)("th",{children:(0,l.jsx)(t.p,{children:"Description"})})]})}),(0,l.jsxs)("tbody",{children:[(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:(0,l.jsx)(t.p,{children:"state"})}),(0,l.jsx)("td",{children:(0,l.jsx)(t.p,{children:(0,l.jsx)(t.a,{href:"/next/api/puppeteer.adapterstate",children:"AdapterState"})})}),(0,l.jsx)("td",{children:(0,l.jsx)(t.p,{children:"The desired bluetooth adapter state."})})]}),(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:(0,l.jsx)(t.p,{children:"leSupported"})}),(0,l.jsx)("td",{children:(0,l.jsx)(t.p,{children:"boolean"})}),(0,l.jsx)("td",{children:(0,l.jsxs)(t.p,{children:[(0,l.jsx)(t.em,{children:"(Optional)"})," Mark if the adapter supports low-energy bluetooth."]})})]})]})]}),"\n",(0,l.jsx)(t.p,{children:(0,l.jsx)(t.strong,{children:"Returns:"})}),"\n",(0,l.jsx)(t.p,{children:"Promise<void>"})]})}function p(e={}){let{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,l.jsx)(t,{...e,children:(0,l.jsx)(u,{...e})}):u(e)}},28453(e,t,r){r.d(t,{R:()=>o,x:()=>i});var a=r(96540);let l={},n=a.createContext(l);function o(e){let t=a.useContext(n);return a.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function i(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:o(e.components),a.createElement(n.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.