chore: mobile web bridge concept (#1228)
This commit is contained in:
15
packages/mobile/WebFrame/DeviceInterface.template.js
Normal file
15
packages/mobile/WebFrame/DeviceInterface.template.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
class WebProcessDeviceInterface {
|
||||
constructor(messageSender) {
|
||||
this.appVersion = '1.2.3'
|
||||
this.environment = 1
|
||||
this.databases = []
|
||||
this.messageSender = messageSender
|
||||
}
|
||||
|
||||
setApplication() {}
|
||||
|
||||
sendMessage(functionName, args) {
|
||||
return this.messageSender.sendMessage(functionName, args)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user