Get the fullscreen button (or undefined if it doesn't exist yet). Call ButtonsFactory.createFullscreenButton to get or create it
Get the mute button (or undefined if it doesn't exist yet). Call ButtonsFactory.createMuteButton to get or create it
Get the QR code button (or undefined if it doesn't exist yet). Call ButtonsFactory.createQRCode to get or create it
Create a fullscreen button (or return the existing one if it already exists)
Create a mute button (or return the existing one if it already exists)
Create a QR code button (or return the existing one if it already exists)
The QR code button will show a QR code that can be scanned to open the current page on a phone
The QR code will be generated with the current URL when the button is clicked
the QR code button element
Static
createcreate a new buttons factory
Static
getGet access to the default HTML button factory.
Use this to get or create default Needle Engine buttons that can be added to your HTML UI
If you want to create a new factory and create new button instances instead of shared buttons, use ButtonsFactory.create()
instead
Generated using TypeDoc
Use the ButtonsFactory to create buttons with icons and functionality
Get access to the default buttons by using
ButtonsFactory.getOrCreate()
The factory will create the buttons if they don't exist yet, and return the existing ones if they do (this allows you to reparent or modify created buttons)