-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added DeviceRendererFactory typing #88
Conversation
index.d.ts
Outdated
activeKeyMappingDebug(isTraceActivate?: boolean, isGridActivate?: boolean): void; | ||
}; | ||
|
||
type VmEvent = 'beforeunload' | 'fingerprint' | 'gps' | 'BATTERY_LEVEL' | string // TODO Provide an exhaustive list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I've found, there are a few other events that are listed in the tests, but I don't know yet if the tests are exhaustive. Here are all values found in the tests:
ANDROID_ID
baseband
battery
BATTERY_STATUS
BLK
CLIPBOARD
diskio
fingerprint
framework
gps
IMEI
NETWORK
network_profile
settings
SYSTEM_PATCHER_LAST_RESULT
SYSTEM_PATCHER_STATUS
systempatcher
I'm trying to find a source of truth for these, either in the cloud player, maybe libcom repo, or something else.
[edit] by looking for occurences of registerEventCallback
I've also found these:
BATTERY_LEVEL
vinput
index.d.ts
Outdated
|
||
type VmCommunication = { | ||
disconnect(): void; | ||
addEventListener(event: VmEvent, callback: (msg: string) => void): void; // TODO Verify if msg is always string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I've found in the code for now, all values for msg
where strings
index.d.ts
Outdated
type VmCommunication = { | ||
disconnect(): void; | ||
addEventListener(event: VmEvent, callback: (msg: string) => void): void; // TODO Verify if msg is always string | ||
sendData(data: { channel: string; messages: string[] }): void; // TODO Verify typing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO
index.d.ts
Outdated
| 'CLIPBOARD' | ||
| 'diskio' | ||
| 'fingerprint' | ||
| 'fingerprint' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
twice fingerprint
index.d.ts
Outdated
| 'fingerprint' | ||
| 'framework' | ||
| 'gps' | ||
| 'gps' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
twice gps
Description
Adds some typings for the device renderer.
Type of change
Checklist