PenCommV1Callbacks Interface

Neo smartpen SDK

PenCommV1Callbacks Interface

The PenCommV1Callbacks interface models a callback used when the the N2 smart pen needs to notify the client side. Please note that the implementation of the PenSignal run on main read thread. so if you want to do heavy work in callback method block, you have to run your code asyncronously.

Namespace:  Neosmartpen.Net.Protocol.v1
Assembly:  Neosmartpen.Net.Protocol.v1 (in Neosmartpen.Net.Protocol.v1.dll) Version: 2.1.13.0 (2.1.13)
Syntax
C#
public interface PenCommV1Callbacks

The PenCommV1Callbacks type exposes the following members.

Methods
  NameDescription
Public methodonAvailableNoteAccepted
Occurs when the note information to be used is accepted
Public methodonConnected
Fired when a connection is made, override to handle in your own code.
Public methodonDisconnected
Fired when a connection is destroyed, override to handle in your own code.
Public methodonErrorDetected
Occur when error received
Public methodonFinishedOfflineDownload
Fired when finished downloading, override to handle in your own code.
Public methodonOfflineDataList
Fired when receive offline data list in N2 smartpen. When you received this signal, you can request offline data to PenCommV1 by ReqOfflineData method.
Public methodonPenAuthenticated
Fired when your connection is authenticated. When it fired, you can use all function of pen.
Public methodonPenAutoPowerOnSetUpResponse
Fired when pen response to your request that Sets the status of the auto power on property by PenCommV1.ReqSetupPenBeep method.
Public methodonPenAutoShutdownTimeSetUpResponse
Fired when pen response to your request that sets the value of the auto shutdown time by PenCommV1.ReqSetupPenAutoShutdownTime method.
Public methodonPenBeepSetUpResponse
Fired when pen response to your request that Sets the status of the beep property by PenCommV1.ReqSetupPenBeep method.
Public methodonPenColorSetUpResponse
Fired when pen response to your request that Sets the color of pen ink by PenCommV1.ReqSetupPenColor method.
Public methodonPenHoverSetUpResponse
Fired when pen response to your request that sets the status of the hover mode on property by PenCommV1.ReqSetupHoverMode method.
Public methodonPenPasswordRequest
Fired when pen request a password to client side. When you received this signal, you have to enter password by PenCommV1.InputPassword method.
Public methodonPenPasswordSetUpResponse
Fired when pen response to your request that change password by PenCommV1.InputPassword method.
Public methodonPenSensitivitySetUpResponse
Fired when pen response to your request that sets the value of the sensitivity property by PenCommV1.ReqSetupPenSensitivity method.
Public methodonReceivedFirmwareUpdateResult
Fired when finished updating firmware, override to handle in your own code.
Public methodonReceivedFirmwareUpdateStatus
This method is invoked by the PenCommV1 when it needs to notify the client side about the status of an firmware update operation being performed.
Public methodonReceiveDot
Fired when receive a dot successfully, override to handle in your own code.
Public methodonReceivedPenStatus
Fired when received status of pen, override to handle in your own code.
Public methodonReceiveOfflineStrokes
Fired when received one in all offline data. Array of stroke is consist of single note. This method can be invoked several time as number of offline note.
Public methodonStartOfflineDownload
Fired when started downloading, override to handle in your own code.
Public methodonSymbolDetected
Occur when you write on a symbol
Public methodonUpdateOfflineDownload
This method is invoked by the PenCommV1 when it needs to notify the client side about the status of an download operation being performed.
Public methodonUpDown
Fired when receive up or down signal from your force sensor of pen, override to handle in your own code.
Top
See Also