puppeteer/assets/js/7041ff8b.1d134d70.js

2 lines
4.3 KiB
JavaScript
Raw Normal View History

/*! For license information please see 7041ff8b.1d134d70.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[85148],{55879:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>h,contentTitle:()=>o,default:()=>l,frontMatter:()=>n,metadata:()=>a,toc:()=>i});var r=s(85893),c=s(11151);const n={sidebar_label:"Touchscreen"},o="Touchscreen class",a={id:"api/puppeteer.touchscreen",title:"Touchscreen class",description:"The Touchscreen class exposes touchscreen events.",source:"@site/versioned_docs/version-22.0.0/api/puppeteer.touchscreen.md",sourceDirName:"api",slug:"/api/puppeteer.touchscreen",permalink:"/api/puppeteer.touchscreen",draft:!1,unlisted:!1,tags:[],version:"22.0.0",frontMatter:{sidebar_label:"Touchscreen"},sidebar:"api",previous:{title:"Mouse.wheel",permalink:"/api/puppeteer.mouse.wheel"},next:{title:"Touchscreen.tap",permalink:"/api/puppeteer.touchscreen.tap"}},h={},i=[{value:"Signature:",id:"signature",level:4},{value:"Remarks",id:"remarks",level:2},{value:"Methods",id:"methods",level:2}];function d(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",h4:"h4",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,c.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"touchscreen-class",children:"Touchscreen class"}),"\n",(0,r.jsx)(t.p,{children:"The Touchscreen class exposes touchscreen events."}),"\n",(0,r.jsx)(t.h4,{id:"signature",children:"Signature:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-typescript",children:"export declare abstract class Touchscreen\n"})}),"\n",(0,r.jsx)(t.h2,{id:"remarks",children:"Remarks"}),"\n",(0,r.jsxs)(t.p,{children:["The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ",(0,r.jsx)(t.code,{children:"Touchscreen"})," class."]}),"\n",(0,r.jsx)(t.h2,{id:"methods",children:"Methods"}),"\n",(0,r.jsxs)(t.table,{children:[(0,r.jsx)(t.thead,{children:(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.th,{children:"Method"}),(0,r.jsx)(t.th,{children:"Modifiers"}),(0,r.jsx)(t.th,{children:"Description"})]})}),(0,r.jsxs)(t.tbody,{children:[(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.a,{href:"/api/puppeteer.touchscreen.tap",children:"tap(x, y)"})}),(0,r.jsx)(t.td,{}),(0,r.jsxs)(t.td,{children:["Dispatches a ",(0,r.jsx)("code",{children:"touchstart"})," and ",(0,r.jsx)("code",{children:"touchend"})," event."]})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.a,{href:"/api/puppeteer.touchscreen.touchend",children:"touchEnd()"})}),(0,r.jsx)(t.td,{}),(0,r.jsxs)(t.td,{children:["Dispatches a ",(0,r.jsx)("code",{children:"touchend"})," event."]})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.a,{href:"/api/puppeteer.touchscreen.touchmove",children:"touchMove(x, y)"})}),(0,r.jsx)(t.td,{}),(0,r.jsxs)(t.td,{children:["Dispatches a ",(0,r.jsx)("code",{children:"touchMove"})," event."]})]}),(0,r.jsxs)(t.tr,{children:[(0,r.jsx)(t.td,{children:(0,r.jsx)(t.a,{href:"/api/puppeteer.touchscreen.touchstart",children:"touchStart(x, y)"})}),(0,r.jsx)(t.td,{}),(0,r.jsxs)(t.td,{children:["Dispatches a ",(0,r.jsx)("code",{children:"touchstart"})," event."]})]})]})]})]})}function l(e={}){const{wrapper:t}={...(0,c.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},75251:(e,t,s)=>{var r=s(67294),c=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function i(e,t,s){var r,n={},i=null,d=null;for(r in void 0!==s&&(i=""+s),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(d=t.ref),t)o.call(t,r)&&!h.hasOwnProperty(r)&&(n[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===n[r]&&(n[r]=t[r]);return{$$typeof:c,type:e,key:i,ref:d,props:n,_owner:a.current}}t.Fragment=n,t.jsx=i,t.jsxs=i},85893:(e,t,s)=>{e.exports=s(75251)},11151:(e,t,s)=>{s.d(t,{Z:()=>a,a:()=>o});var r=s(67294);const c={},n=r.createContext(c);function o(e){const t=r.useContext(n);return r.useMe