@hyperplay/browser-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

HyperPlay Browser SDK

SDK for browser projects integrating with HyperPlay's Browser Platform.

Installation

npm install @hyperplay/browser-sdk

Integration

The following code snippet can be tested with the browser-sdk-demo project.

import { requestFullscreen } from '@hyperplay/browser-sdk'

...

  <button onClick={() => {requestFullscreen({ elementId: 'gameCanvas', setStyle: true })}}>Request Fullscreen</button>
  ...
  <div id="gameCanvas">Some Content</div>

Note that requestFullscreen will call Element.requestFullscreen by default if your project is not being rendered in the HyperPlay Store.

Readme

Keywords

none

Package Sidebar

Install

npm i @hyperplay/browser-sdk

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

6.32 kB

Total Files

6

Last publish

Collaborators

  • blingus
  • flaviofearn
  • elioebricenov
  • pimentelx
  • mrqz
  • zpelkey
  • biliane
  • iamdavid0091