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

PlatformWrapperImplElectron

Extends:

PlatformWrapperInterfacePlatformWrapperImplBrowser → PlatformWrapperImplElectron

Method Summary

Public Methods
public
public
public
public
public
public
public

initialize(): *

public
public
public
public

setFullscreen(flag: *)

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

From class PlatformWrapperImplBrowser
public

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

public
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

Public Methods

public exitApp() source

Attempts to quit the app

Override:

PlatformWrapperImplBrowser#exitApp

public getId(): string source

Override:

PlatformWrapperImplBrowser#getId

Return:

string

public getSupportsAds(): boolean source

Should return if this platform supports ads at all

Override:

PlatformWrapperInterface#getSupportsAds

Return:

boolean

public getSupportsAppExit(): boolean source

Returns whether this platform supports quitting the app

Override:

PlatformWrapperInterface#getSupportsAppExit

Return:

boolean

public getSupportsFullscreen(): boolean source

Returns whether this platform supports a toggleable fullscreen

Override:

PlatformWrapperInterface#getSupportsFullscreen

Return:

boolean

public getSupportsRestart(): boolean source

Override:

PlatformWrapperImplBrowser#getSupportsRestart

Return:

boolean

public initialize(): * source

Override:

PlatformWrapperImplBrowser#initialize

Return:

*

public initializeAdProvider(): * source

Should initialize the apps ad provider in case supported

Override:

PlatformWrapperImplBrowser#initializeAdProvider

Return:

*

Attempt to open an external url

Override:

PlatformWrapperImplBrowser#openExternalLink

Params:

NameTypeAttributeDescription
url *

public performRestart() source

Attempt to restart the app

Override:

PlatformWrapperImplBrowser#performRestart

public setFullscreen(flag: *) source

Should set the apps fullscreen state to the desired state

Override:

PlatformWrapperInterface#setFullscreen

Params:

NameTypeAttributeDescription
flag *