You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
48 lines
1.0 KiB
import { _Base } from "common/lib/_Base"
|
|
import { ApiFactory } from "common/lib/abstract"
|
|
import { LogLevel } from "packages/logger/common"
|
|
|
|
class PlatForm extends _Base {
|
|
constructor() {
|
|
super()
|
|
}
|
|
|
|
private get api() {
|
|
return ApiFactory.getApiClient()
|
|
}
|
|
|
|
async logSetLevel(level: LogLevel) {
|
|
return this.api.call("PlatFormCommand.logSetLevel", level)
|
|
}
|
|
|
|
async logGetLevel() {
|
|
return this.api.call("PlatFormCommand.logGetLevel")
|
|
}
|
|
|
|
async showAbout() {
|
|
// return this.api.call("BasicService.showAbout")
|
|
return this.api.call("PlatFormCommand.showAbout")
|
|
}
|
|
|
|
async crash() {
|
|
return this.api.call("PlatFormCommand.crash")
|
|
}
|
|
|
|
async isFullScreen() {
|
|
return this.api.call("PlatFormCommand.isFullscreen")
|
|
}
|
|
|
|
async toggleFullScreen() {
|
|
return this.api.call("PlatFormCommand.fullscreen")
|
|
}
|
|
|
|
async reload() {
|
|
return this.api.call("PlatFormCommand.reload")
|
|
}
|
|
|
|
async toggleDevTools() {
|
|
return this.api.call("PlatFormCommand.toggleDevTools")
|
|
}
|
|
}
|
|
|
|
export { PlatForm }
|
|
|