English | 简体中文
- Scan notepad
- Connect notepad
- Sync notepen pointer
NotepadScanner notepadScanner = new NotepadScanner();
notepadScanner.Found += (sender, args) => Debug.WriteLine($"OnNotepadFound {args}");
notepadScanner.StartScan()
// ...
notepadScanner.StopScan()
Connect to result
, received from NotepadScanner.Found
NotepadConnector notepadConnector = new NotepadConnector();
notepadConnector.ConnectionChanged += (sender, args) => Debug.WriteLine($"OnConnectionChanged {sender} {args}");
notepadConnector.Connect(result);
// ...
notepadConnector.Disconnect();
- NotepadMode.Common
The device only saves NotePenPointer (with time stamp) of pressure >0 to offline handwriting - NotepadMode.Sync
The device sends all NotePenPointer (without timestamp) to the connected phone /Pad
The device defaults to NotepadMode.Common (connected/unconnected), and setMode only changes after the connection
NotepadClient notepadClient;
notepadClient.SetMode(NotepadMode.Sync);
When notepadmode.sync, receive NotePenPointer
notepadClient.SyncPointerReceived += OnSyncPointerReceived;
private void OnSyncPointerReceived(NotepadClient sender, List<NotePenPointer> args)
{
foreach (var pointer in args)
Debug.WriteLine($"OnSyncPointerReceived {pointer}");
}