Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CatMuse/HiNote
/ setOnDeviceChange
Method
setOnDeviceChange
src/views/managers/DeviceManager.ts:25–27 ·
view source on GitHub ↗
* 设置设备变化回调
(callback: (deviceInfo: DeviceInfo) => void)
Source
from the content-addressed store, hash-verified
23
* 设置设备变化回调
24
*/
25
setOnDeviceChange(callback: (deviceInfo: DeviceInfo) => void): void {
26
this.onDeviceChangeCallback = callback;
27
}
28
29
/**
30
* 开始监听屏幕尺寸变化
Callers
1
setupHiNoteView
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected