@@ -160,15 +160,21 @@ <h4><a class="anchor" aria-hidden="true" id="permissions-required-desktopstreami
160160< blockquote >
161161< p > Returns the DPI and sclae of the current window.</ p >
162162</ blockquote >
163- < table >
163+
164+ < div class ="admonition admonition-warning ">
165+ < div class ="admonition-heading ">
166+ < h5 > < div class ="admonition-icon "> < svg xmlns ="http://www.w3.org/2000/svg " width ="16 " height ="16 " viewBox ="0 0 16 16 "> < path fill-rule ="evenodd " d ="M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z "/> </ svg > </ div > warning</ h5 >
167+ </ div >
168+ < div class ="admonition-content ">
169+ < p > We removed this function from our API. Instead, please use < a href ="https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio "> Window.devicePixelRatio</ a > to get the DPI of the current window. It's pure JS and even more efficient. < a href ="../topics/windows-resolution-size-position#dpi "> More info</ a > about DPI and OW windows.</ p >
170+ </ div > </ div > < table >
164171< thead >
165172< tr > < th > Parameter</ th > < th > Type</ th > < th > Description</ th > </ tr >
166173</ thead >
167174< tbody >
168175< tr > < td > callback</ td > < td > function</ td > < td > Called with the DPI info</ td > </ tr >
169176</ tbody >
170177</ table >
171- < p > Note that you can use < a href ="https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio "> Window.devicePixelRatio</ a > to get the DPI of the current window. It's pure JS and even more efficient.</ p >
172178< h4 > < a class ="anchor " aria-hidden ="true " id ="callback-argument-success "> </ a > < a href ="#callback-argument-success " aria-hidden ="true " class ="hash-link "> < svg class ="hash-link-icon " aria-hidden ="true " height ="16 " version ="1.1 " viewBox ="0 0 16 16 " width ="16 "> < path fill-rule ="evenodd " d ="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z "> </ path > </ svg > </ a > Callback argument: Success</ h4 >
173179< p > A callback function which will be called with the status of the request</ p >
174180< pre > < code class ="hljs css language-json "> {
@@ -749,7 +755,7 @@ <h4><a class="anchor" aria-hidden="true" id="version-added-0153-1"></a><a href="
749755< tr > < td > skip_in_game_notification</ td > < td > bool</ td > < td > When set to true, Do not display the pop-up warning for the user if in-game</ td > </ tr >
750756</ tbody >
751757</ table >
752- </ span > </ div > </ article > </ div > < div class ="docLastUpdate "> < em > Last updated on 2020-7-28 by eransharv</ em > </ div > < div class ="docs-prevnext "> < a class ="docs-prev button " href ="/docs/api/overwolf-tobii "> < span class ="arrow-prev "> ← </ span > < span > overwolf.tobii</ span > </ a > < a class ="docs-next button " href ="/docs/api/overwolf-web "> < span > overwolf.web</ span > < span class ="arrow-next "> →</ span > </ a > </ div > </ div > </ div > < nav class ="onPageNav "> < ul class ="toc-headings "> < li > < a href ="#methods-reference "> Methods Reference</ a > </ li > < li > < a href ="#types-reference "> Types Reference</ a > </ li > < li > < a href ="#placeonclipboarddata "> placeOnClipboard(data)</ a > </ li > < li > < a href ="#getfromclipboardcallback "> getFromClipboard(callback)</ a > </ li > < li > < a href ="#getmonitorslistcallback "> getMonitorsList(callback)</ a > </ li > < li > < a href ="#getwindowdpicallback "> getWindowDPI(callback)</ a > </ li > < li > < a href ="#sendkeystrokekeystring "> sendKeyStroke(keyString)</ a > </ li > < li > < a href ="#openfilepickerfilter-callback "> openFilePicker(filter, callback)</ a > </ li > < li > < a href ="#openfilepickerfilter-initialpath-callback "> openFilePicker(filter, initialPath, callback)</ a > </ li > < li > < a href ="#openfolderpickerinitialpath-callback "> openFolderPicker(initialPath, callback)</ a > </ li > < li > < a href ="#openwindowsexplorerurl-callback "> openWindowsExplorer(url, callback)</ a > </ li > < li > < a href ="#istouchdevicecallback "> isTouchDevice(callback)</ a > </ li > < li > < a href ="#openurlindefaultbrowserurl "> openUrlInDefaultBrowser(url)</ a > </ li > < li > < a href ="#openurlinoverwolfbrowserurl "> openUrlInOverwolfBrowser(url)</ a > </ li > < li > < a href ="#openurlindefaultbrowserurlopenurloptions "> openUrlInDefaultBrowser(url,openUrlOptions)</ a > </ li > < li > < a href ="#getsysteminformationcallback "> getSystemInformation(callback)</ a > </ li > < li > < a href ="#getperipheralscallback "> getPeripherals(callback)</ a > </ li > < li > < a href ="#openstoreoneapppageappid "> openStoreOneAppPage(appId)</ a > </ li > < li > < a href ="#openstoreparam "> openStore(param)</ a > </ li > < li > < a href ="#ismouseleftbuttonpressedcallback "> isMouseLeftButtonPressed(callback)</ a > </ li > < li > < a href ="#uploadclientlogscallback "> uploadClientLogs(callback)</ a > </ li > < li > < a href ="#estorepage-enum "> eStorePage enum</ a > </ li > < li > < a href ="#openstoreparams-object "> OpenStoreParams Object</ a > </ li > < li > < a href ="#getsysteminformationresult-object "> GetSystemInformationResult Object</ a > </ li > < li > < a href ="#getmonitorslistresult-object "> GetMonitorsListResult Object</ a > </ li > < li > < a href ="#gpuinfo-object "> GPUInfo Object</ a > </ li > < li > < a href ="#harddiskinfo-object "> HardDiskInfo Object</ a > </ li > < li > < a href ="#inputdeviceinfo-object "> InputDeviceInfo Object</ a > </ li > < li > < a href ="#monitorinfo-object "> MonitorInfo Object</ a > </ li > < li > < a href ="#display-object "> Display Object</ a > </ li > < li > < a href ="#openfilepickerresult-object "> OpenFilePickerResult Object</ a > </ li > < li > < a href ="#openurloptions-object "> OpenUrlOptions Object</ a > </ li > </ ul > </ nav > </ div > < footer class ="site-footer "> < div class ="container "> < ul > < li > Legal</ li > < li > < a href ="/docs/topics/legal-overview "> Terms overview</ a > </ li > < li > < a href ="/docs/topics/legal-developers-terms "> Developer's terms</ a > </ li > < li > < a href ="/docs/topics/legal-app-terms "> App terms</ a > </ li > < li > < a href ="http://www.overwolf.com/legal/ " target ="_blank "> Overwolf terms</ a > </ li > < li > < a href ="http://www.overwolf.com/legal/#Privacy-policy " target ="_blank "> Overwolf Privacy policy</ a > </ li > </ ul > < ul > < li > Support</ li > < li > < a href =" https://discuss.developers.overwolf.com/ " target ="_blank "> Questions and Answers</ a > </ li > < li > < a href =" https://discord.gg/7256qS2 " target ="_blank "> Discord</ a > </ li > < li > < a href ="/docs/support/contact-us#join-our-slack "> Slack</ a > </ li > < li > < a href ="https://www.facebook.com/OverwolfDevs " target ="_blank "> Facebook</ a > </ li > < li > < a href ="https://twitter.com/OverwolfDevs " target ="_blank "> Twitter</ a > </ li > </ ul > < ul > < li > Documentation</ li > < li > < a href ="/docs/api/changelog "> Changelog</ a > </ li > < li > < a href ="/docs/api/overwolf-api-overview "> API</ a > </ li > < li > < a href ="/docs/start/app-creation-process "> App Creation Process</ a > </ li > < li > < a href ="/docs/topics/best-practices-overview "> Best Practices</ a > </ li > < li > < a href ="/docs/status/all "> Game Events status</ a > </ li > </ ul > < ul > < li > Information</ li > < li > < a href ="http://www.overwolf.com/careers/ "> Careers</ a > </ li > < li > < a href ="https://play.overwolf.com/fund/ " target ="_blank "> Fund</ a > </ li > < li > < a href ="https://medium.com/overwolf " target ="_blank "> Developers Blog</ a > </ li > < li > < a href ="https://www.overwolf.com/appstore " target ="_blank "> Overwolf Appstore</ a > </ li > < li > < a href ="https://brands.overwolf.com/ " target ="_blank "> Advertise on Overwolf</ a > </ li > </ ul > </ div > </ footer > </ div > < script type ="text/javascript " src ="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js "> </ script > < script >
758+ </ span > </ div > </ article > </ div > < div class ="docLastUpdate "> < em > Last updated on 2020-8-9 by eransharv</ em > </ div > < div class ="docs-prevnext "> < a class ="docs-prev button " href ="/docs/api/overwolf-tobii "> < span class ="arrow-prev "> ← </ span > < span > overwolf.tobii</ span > </ a > < a class ="docs-next button " href ="/docs/api/overwolf-web "> < span > overwolf.web</ span > < span class ="arrow-next "> →</ span > </ a > </ div > </ div > </ div > < nav class ="onPageNav "> < ul class ="toc-headings "> < li > < a href ="#methods-reference "> Methods Reference</ a > </ li > < li > < a href ="#types-reference "> Types Reference</ a > </ li > < li > < a href ="#placeonclipboarddata "> placeOnClipboard(data)</ a > </ li > < li > < a href ="#getfromclipboardcallback "> getFromClipboard(callback)</ a > </ li > < li > < a href ="#getmonitorslistcallback "> getMonitorsList(callback)</ a > </ li > < li > < a href ="#getwindowdpicallback "> getWindowDPI(callback)</ a > </ li > < li > < a href ="#sendkeystrokekeystring "> sendKeyStroke(keyString)</ a > </ li > < li > < a href ="#openfilepickerfilter-callback "> openFilePicker(filter, callback)</ a > </ li > < li > < a href ="#openfilepickerfilter-initialpath-callback "> openFilePicker(filter, initialPath, callback)</ a > </ li > < li > < a href ="#openfolderpickerinitialpath-callback "> openFolderPicker(initialPath, callback)</ a > </ li > < li > < a href ="#openwindowsexplorerurl-callback "> openWindowsExplorer(url, callback)</ a > </ li > < li > < a href ="#istouchdevicecallback "> isTouchDevice(callback)</ a > </ li > < li > < a href ="#openurlindefaultbrowserurl "> openUrlInDefaultBrowser(url)</ a > </ li > < li > < a href ="#openurlinoverwolfbrowserurl "> openUrlInOverwolfBrowser(url)</ a > </ li > < li > < a href ="#openurlindefaultbrowserurlopenurloptions "> openUrlInDefaultBrowser(url,openUrlOptions)</ a > </ li > < li > < a href ="#getsysteminformationcallback "> getSystemInformation(callback)</ a > </ li > < li > < a href ="#getperipheralscallback "> getPeripherals(callback)</ a > </ li > < li > < a href ="#openstoreoneapppageappid "> openStoreOneAppPage(appId)</ a > </ li > < li > < a href ="#openstoreparam "> openStore(param)</ a > </ li > < li > < a href ="#ismouseleftbuttonpressedcallback "> isMouseLeftButtonPressed(callback)</ a > </ li > < li > < a href ="#uploadclientlogscallback "> uploadClientLogs(callback)</ a > </ li > < li > < a href ="#estorepage-enum "> eStorePage enum</ a > </ li > < li > < a href ="#openstoreparams-object "> OpenStoreParams Object</ a > </ li > < li > < a href ="#getsysteminformationresult-object "> GetSystemInformationResult Object</ a > </ li > < li > < a href ="#getmonitorslistresult-object "> GetMonitorsListResult Object</ a > </ li > < li > < a href ="#gpuinfo-object "> GPUInfo Object</ a > </ li > < li > < a href ="#harddiskinfo-object "> HardDiskInfo Object</ a > </ li > < li > < a href ="#inputdeviceinfo-object "> InputDeviceInfo Object</ a > </ li > < li > < a href ="#monitorinfo-object "> MonitorInfo Object</ a > </ li > < li > < a href ="#display-object "> Display Object</ a > </ li > < li > < a href ="#openfilepickerresult-object "> OpenFilePickerResult Object</ a > </ li > < li > < a href ="#openurloptions-object "> OpenUrlOptions Object</ a > </ li > </ ul > </ nav > </ div > < footer class ="site-footer "> < div class ="container "> < ul > < li > Legal</ li > < li > < a href ="/docs/topics/legal-overview "> Terms overview</ a > </ li > < li > < a href ="/docs/topics/legal-developers-terms "> Developer's terms</ a > </ li > < li > < a href ="/docs/topics/legal-app-terms "> App terms</ a > </ li > < li > < a href ="http://www.overwolf.com/legal/ " target ="_blank "> Overwolf terms</ a > </ li > < li > < a href ="http://www.overwolf.com/legal/#Privacy-policy " target ="_blank "> Overwolf Privacy policy</ a > </ li > </ ul > < ul > < li > Support</ li > < li > < a href =" https://discuss.developers.overwolf.com/ " target ="_blank "> Questions and Answers</ a > </ li > < li > < a href =" https://discord.gg/7256qS2 " target ="_blank "> Discord</ a > </ li > < li > < a href ="/docs/support/contact-us#join-our-slack "> Slack</ a > </ li > < li > < a href ="https://www.facebook.com/OverwolfDevs " target ="_blank "> Facebook</ a > </ li > < li > < a href ="https://twitter.com/OverwolfDevs " target ="_blank "> Twitter</ a > </ li > </ ul > < ul > < li > Documentation</ li > < li > < a href ="/docs/api/changelog "> Changelog</ a > </ li > < li > < a href ="/docs/api/overwolf-api-overview "> API</ a > </ li > < li > < a href ="/docs/start/app-creation-process "> App Creation Process</ a > </ li > < li > < a href ="/docs/topics/best-practices-overview "> Best Practices</ a > </ li > < li > < a href ="/docs/status/all "> Game Events status</ a > </ li > </ ul > < ul > < li > Information</ li > < li > < a href ="http://www.overwolf.com/careers/ "> Careers</ a > </ li > < li > < a href ="https://play.overwolf.com/fund/ " target ="_blank "> Fund</ a > </ li > < li > < a href ="https://medium.com/overwolf " target ="_blank "> Developers Blog</ a > </ li > < li > < a href ="https://www.overwolf.com/appstore " target ="_blank "> Overwolf Appstore</ a > </ li > < li > < a href ="https://brands.overwolf.com/ " target ="_blank "> Advertise on Overwolf</ a > </ li > </ ul > </ div > </ footer > </ div > < script type ="text/javascript " src ="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js "> </ script > < script >
753759 document . addEventListener ( 'keyup' , function ( e ) {
754760 if ( e . target !== document . body ) {
755761 return ;
0 commit comments