Home Reference Source
import {PlatformWrapperImplBrowser} from 'shapez.io/js/platform/browser/wrapper.js'
public class | source

PlatformWrapperImplBrowser

Extends:

PlatformWrapperInterface → PlatformWrapperImplBrowser

Member Summary

Public Members
public

embedProvider: {"id": string, "adProvider": *, "iframed": *, "externalLinks": boolean, "iogLink": boolean}

public

Method Summary

Public Methods
public

Detects if there is an adblocker installed

public
public
public

getId(): *

public
public
public

getUiScale(): *

public

initialize(): *

public
public

openExternalLink(url: *, force: boolean)

public

Inherited Summary

From class PlatformWrapperInterface
public
public

Attempts to quit the app

public
public

Should return the maximum supported zoom level

public

Should return the minimum supported zoom level

public
public

Should return if this platform supports ads at all

public

Returns whether this platform supports quitting the app

public

Returns whether this platform supports a toggleable fullscreen

public

Whether this platform supports a keyboard

public
public

Returns the strength of touch pans with the mouse

public

Returns the UI scale, called on every resize

public

initialize(): Promise<void>

public

Should initialize the apps ad provider in case supported

public

openExternalLink(url: string, force: boolean=)

Attempt to open an external url

public

Attempt to restart the app

public

Should set the apps fullscreen state to the desired state

Public Members

public embedProvider: {"id": string, "adProvider": *, "iframed": *, "externalLinks": boolean, "iogLink": boolean} source

public recaptchaTokenCallback: * source

Public Methods

public detectAdblock(): Promise<boolean> source

Detects if there is an adblocker installed

Return:

Promise<boolean>

public detectStorageImplementation(): * source

Return:

*

public exitApp() source

Attempts to quit the app

Override:

PlatformWrapperInterface#exitApp

public getId(): * source

Override:

PlatformWrapperInterface#getId

Return:

*

public getSupportsRestart(): boolean source

Override:

PlatformWrapperInterface#getSupportsRestart

Return:

boolean

public getTouchPanStrength(): * source

Returns the strength of touch pans with the mouse

Override:

PlatformWrapperInterface#getTouchPanStrength

Return:

*

public getUiScale(): * source

Returns the UI scale, called on every resize

Override:

PlatformWrapperInterface#getUiScale

Return:

*

public initialize(): * source

Override:

PlatformWrapperInterface#initialize

Return:

*

public initializeAdProvider(): * source

Should initialize the apps ad provider in case supported

Override:

PlatformWrapperInterface#initializeAdProvider

Return:

*

Attempt to open an external url

Override:

PlatformWrapperInterface#openExternalLink

Params:

NameTypeAttributeDescription
url *
force boolean
  • optional
  • default: false

public performRestart() source

Attempt to restart the app

Override:

PlatformWrapperInterface#performRestart