import {PlatformWrapperImplBrowser} from 'shapez.io/js/platform/browser/wrapper.js'PlatformWrapperImplBrowser
Extends:
Direct Subclass:
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 |
exitApp() |
|
| public |
getId(): * |
|
| public |
|
|
| public |
getTouchPanStrength(): * |
|
| public |
getUiScale(): * |
|
| public |
initialize(): * |
|
| public |
initializeAdProvider(): * |
|
| public |
openExternalLink(url: *, force: boolean) |
|
| public |
|
|
Inherited Summary
| From class PlatformWrapperInterface | ||
| public |
|
|
| public |
exitApp() Attempts to quit the app |
|
| public |
|
|
| public |
Should return the maximum supported zoom level |
|
| public |
Should return the minimum supported zoom level |
|
| public |
getScreenScale(): * |
|
| 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 |
getSupportsKeyboard(): * Whether this platform supports a keyboard |
|
| public |
|
|
| public |
Returns the strength of touch pans with the mouse |
|
| public |
getUiScale(): number Returns the UI scale, called on every resize |
|
| public |
initialize(): Promise<void> |
|
| public |
initializeAdProvider(): Promise<void> 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 |
setFullscreen(flag: boolean) 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 getUiScale(): * source
Returns the UI scale, called on every resize
Override:
PlatformWrapperInterface#getUiScaleReturn:
| * |
public initializeAdProvider(): * source
Should initialize the apps ad provider in case supported
Return:
| * |
public openExternalLink(url: *, force: boolean) source
Attempt to open an external url
Params:
| Name | Type | Attribute | Description |
| url | * | ||
| force | boolean |
|
