### start Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/util/Profiler.html Starts the profiler. ```APIDOC ## start ### Description Starts the profiler. ### Method void ### Endpoint start() ``` -------------------------------- ### run Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/FwUpgradeCommand.html Starts the execution of the firmware upgrade command. ```APIDOC ## run ### Description Starts the execution of the firmware upgrade command. Implements the run method from the Runnable interface and overrides the one from the Command class. ``` -------------------------------- ### run Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/BTAdt.ConnectedThread.html Starts the execution of the thread. ```APIDOC ## run ### Description Starts the thread's activity. ``` -------------------------------- ### getInstance Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/BTLEAdt.html Gets the singleton instance of BTLEAdt. ```APIDOC ## getInstance() ### Description Gets the singleton instance of BTLEAdt. ### Method `getInstance` ### Returns - **BTLEAdt** - The singleton instance of BTLEAdt. ``` -------------------------------- ### run() Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/BTLEAdt.ConnectedThread.html Starts the execution of the thread, managing the Bluetooth connection lifecycle. ```APIDOC ## run() ### Description Starts the execution of the thread. This method is part of the Runnable interface and overrides the Thread class's run method. ### Method public void run() ``` -------------------------------- ### Pen Setup Message Types Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/penmsg/PenMsgType.html These constants represent different events and results related to pen setup operations. ```APIDOC ## PEN_SETUP_SUCCESS ### Description Represents a successful pen setup operation. ### Type `int` ### Value `PEN_SETUP_SUCCESS` ``` ```APIDOC ## PEN_SETUP_FAILURE ### Description Represents a failed pen setup operation. ### Type `int` ### Value `PEN_SETUP_FAILURE` ``` ```APIDOC ## PEN_ILLEGAL_PASSWORD_0000 ### Description Represents an event indicating an illegal password (specifically '0000') was used during setup. ### Type `int` ### Value `PEN_ILLEGAL_PASSWORD_0000` ``` ```APIDOC ## PEN_SETUP_AUTO_SHUTDOWN_RESULT ### Description Represents the result of a pen's auto-shutdown setup. ### Type `int` ### Value `PEN_SETUP_AUTO_SHUTDOWN_RESULT` ``` ```APIDOC ## PEN_SETUP_SENSITIVITY_RESULT ### Description Represents the result of a pen's sensitivity setup. ### Type `int` ### Value `PEN_SETUP_SENSITIVITY_RESULT` ``` -------------------------------- ### Setup pen sensitivity Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/IMultiPenCtrl.html Sets the sensitivity level of the pen. ```APIDOC ## reqSetupPenSensitivity ### Description Sets the sensitivity level of the pen. ### Method (Not specified, likely a method call in an SDK) ### Parameters #### Path Parameters (None) #### Query Parameters (None) #### Request Body (None) ### Parameters - **address** (string) - Required - MAC address of the pen. - **level** (short) - Required - The sensitivity level (0-4). ``` -------------------------------- ### getInstance Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/samplecode/MultiPenClientCtrl.html Gets an instance of MultiPenClientCtrl. This is the entry point for interacting with the SDK. ```APIDOC ## getInstance(Context context) ### Description Gets an instance of MultiPenClientCtrl. This method should be called to obtain the singleton instance of the controller. ### Method Static method call ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```java MultiPenClientCtrl.getInstance(context); ``` ### Response #### Success Response (Instance) - **MultiPenClientCtrl** - The singleton instance of the MultiPenClientController. ``` -------------------------------- ### getStartPage(int) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Retrieves the start page based on an integer parameter. Available in IMetadataCtrl and MetadataCtrl. ```APIDOC ## getStartPage(int) ### Description Retrieves the start page based on an integer parameter. ### Method Available in kr.neolab.sdk.metadata.IMetadataCtrl and kr.neolab.sdk.metadata.MetadataCtrl. ### Endpoint N/A (SDK method) ### Parameters * **param1** (int) - Description not specified in source. ``` -------------------------------- ### reqPenBeepSetup Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-18.html Requests the pen to beep for setup confirmation. This method is available in the CommandManager class. ```APIDOC ## reqPenBeepSetup(boolean) ### Description Requests pen beep setup. ### Method (Not specified, likely a SDK method call) ### Parameters * **enableBeep** (boolean) - Required - Specifies whether to enable or disable the pen beep. ### Endpoint (Not applicable for SDK methods) ### Request Example (Not applicable for SDK methods) ### Response (Not specified) ``` -------------------------------- ### run Method Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/Command.html Starts the execution of the command, typically used for Runnable interface implementation. ```APIDOC ## run ### Description Starts the execution of the command. ### Method `public void run()` ``` -------------------------------- ### Get Connected Sub Name Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/BTOfflineAdt.html Gets the sub-name of the connected device. This method is supported from Protocol 2.0. ```APIDOC ## getConnectSubName ### Description Gets the sub-name of the connected device. Supported from Protocol 2.0. ### Method `getConnectSubName()` ### Returns - `java.lang.String` - The sub-name of the connected device. ### Throws - `ProtocolNotSupportedException` - If the protocol version does not support this method. ``` -------------------------------- ### buildPenAutoPowerSetup(boolean) - ProtocolParser20 Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-2.html Builds a pen auto power setup byte array for ProtocolParser20. This corresponds to 0x04 CMD20.REQ_PenStatus and 0x04 REQ_PenStatusChange_TYPE_AutoPowerOnSet. ```APIDOC ## buildPenAutoPowerSetup(boolean) - ProtocolParser20 ### Description Builds a pen auto power setup byte array for ProtocolParser20. This corresponds to 0x04 CMD20.REQ_PenStatus and 0x04 REQ_PenStatusChange_TYPE_AutoPowerOnSet. ### Method Static method ### Endpoint N/A (SDK method) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) - **byte[]**: Response byte array #### Response Example N/A ``` -------------------------------- ### Get Connected Device Name Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/BTOfflineAdt.html Gets the name of the connected device. This method is supported from Protocol 2.0. ```APIDOC ## getConnectDeviceName ### Description Gets the name of the connected device. Supported from Protocol 2.0. ### Method `getConnectDeviceName()` ### Returns - `java.lang.String` - The name of the connected device. ### Throws - `ProtocolNotSupportedException` - If the protocol version does not support this method. ``` -------------------------------- ### run() Method Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/EstablishCommand.html Executes the establish command. This method is part of the Runnable interface and defines the command's execution logic. ```APIDOC ## run() ### Description Executes the establish command. ### Method void ### Endpoint N/A (SDK method) ``` -------------------------------- ### Setup Pen Hover Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/BTOfflineAdt.html Enables or disables the pen hover functionality. ```APIDOC ## reqSetupPenHover ### Description Req setup pen hover. ### Method void ### Parameters #### Path Parameters - **on** (boolean) - Required - Whether to enable or disable pen hover. ``` -------------------------------- ### buildPenAutoPowerSetup(boolean) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-2.html Builds a pen auto power setup byte array. This method is part of the ProtocolParser class. ```APIDOC ## buildPenAutoPowerSetup(boolean) ### Description Builds a pen auto power setup byte array. This method is part of the ProtocolParser class. ### Method Static method ### Endpoint N/A (SDK method) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) - **byte[]**: Response byte array #### Response Example N/A ``` -------------------------------- ### Get Integer Value of DotType Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/ink/structure/DotType.html Retrieves the integer value associated with a DotType constant. This method is used to get the underlying numerical representation of the enum. ```java public int getValue() Gets value. Returns: the value ``` -------------------------------- ### buildPenAutoPowerSetup Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/ProtocolParser.html Builds a byte array to configure the pen's auto power setting. ```APIDOC ## buildPenAutoPowerSetup ### Description Builds a byte array to configure the pen's auto power setting. ### Method static byte[] ### Parameters #### Path Parameters - **on** (boolean) - Required - Specifies whether to turn auto power on or off. ### Returns - **byte[]** - The constructed byte array. ``` -------------------------------- ### Get All ZoomFitType Constants Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/samplecode/SampleView.ZoomFitType.html Use the `values()` method to get an array of all available ZoomFitType constants. This is useful for iterating through all possible zoom fit options. ```java for (SampleView.ZoomFitType c : SampleView.ZoomFitType.values()) { System.out.println(c); } ``` -------------------------------- ### buildPenAutoPowerSetup Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/ProtocolParser20.html Builds a byte array to configure the pen's auto-power on/off setting. ```APIDOC ## buildPenAutoPowerSetup ### Description Builds a byte array to configure the pen's auto-power on/off setting. This corresponds to CMD20.REQ_PenStatus with REQ_PenStatusChange_TYPE_AutoPowerOnSet. ### Method static byte[] ### Endpoint buildPenAutoPowerSetup(boolean on) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **on** (boolean) - Required - True to enable auto-power on, false to disable. ### Request Example None ### Response #### Success Response - byte[]: The constructed byte array. #### Response Example None ``` -------------------------------- ### getStatus Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/Chunk.html Gets the status. ```APIDOC ## getStatus ### Description Gets status. ### Method int getStatus() ### Returns the status ``` -------------------------------- ### Setup pen tip color Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/IMultiPenCtrl.html Sets the color of the pen tip. ```APIDOC ## reqSetupPenTipColor ### Description Sets the color of the pen tip. ### Method (Not specified, likely a method call in an SDK) ### Parameters #### Path Parameters (None) #### Query Parameters (None) #### Request Body (None) ### Parameters - **address** (string) - Required - MAC address of the pen. - **color** (int) - Required - The color value. ``` -------------------------------- ### buildPenTipColorSetup(int) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-2.html Builds a byte array for pen tip color setup. This method is available in both ProtocolParser and ProtocolParser20. ```APIDOC ## buildPenTipColorSetup(int) ### Description Builds a byte array for pen tip color setup. ### Method Static method ### Parameters * **color** (int) - Description not specified in source. ### Response * byte[] - Description not specified in source. ``` -------------------------------- ### getInstance Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/samplecode/PenClientCtrl.html Gets the singleton instance of PenClientCtrl, initializing it with the provided Android context. ```APIDOC ## getInstance ### Description Gets the singleton instance of PenClientCtrl, initializing it with the provided Android context. ### Parameters #### Path Parameters - **context** (android.content.Context) - The Android context to initialize the client with. ### Method Not specified (likely a static method call within an SDK) ### Endpoint Not applicable (SDK method) ### Request Example Not available ### Response #### Success Response ([PenClientCtrl]) - **Return Value**: The singleton instance of PenClientCtrl. #### Response Example Not available ``` -------------------------------- ### buildPenHoverSetup Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-2.html Builds the pen hover setup byte array. This command configures hover detection on the pen. ```APIDOC ## buildPenHoverSetup(boolean) ### Description Builds the pen hover setup byte array. This command configures hover detection on the pen. ### Method Static method ### Endpoint N/A (SDK method) ### Parameters * **boolean** - Description not specified in source. Likely indicates whether to enable or disable hover detection. ### Response * byte[] - The constructed setup byte array. ``` -------------------------------- ### timeStampStart Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/ink/structure/Stroke.html The starting timestamp of the stroke. ```APIDOC ## timeStampStart ### Description The starting timestamp of the stroke. ### Field Type public long ``` -------------------------------- ### startConnect Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/BTAdt.ConnectedThread.html Initiates the Bluetooth connection process. ```APIDOC ## startConnect ### Description Start connect. ``` -------------------------------- ### getStatusPercent Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/Chunk.html Gets the status as a percentage. ```APIDOC ## getStatusPercent ### Description Gets status percent. ### Method int getStatusPercent() ### Returns the status percent ``` -------------------------------- ### startConnect Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/BTAdt.ConnectedThread.html Initiates the Bluetooth connection process. ```APIDOC ## startConnect ### Description Starts the process of establishing a Bluetooth connection. ### Method public void startConnect() ``` -------------------------------- ### getChunkLength Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/Chunk.html Gets the length of the chunk. ```APIDOC ## getChunkLength ### Description Gets chunk length. ### Method int getChunkLength() ### Returns the chunk length ``` -------------------------------- ### buildPenSensitivitySetup (ProtocolParser20) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-2.html Builds the pen sensitivity setup byte array for ProtocolParser20. This configures the pen's pressure sensitivity. ```APIDOC ## buildPenSensitivitySetup(short) ### Description Builds the pen sensitivity setup byte array for ProtocolParser20. This configures the pen's pressure sensitivity. ### Method Static method ### Endpoint N/A (SDK method) ### Parameters * **short** - Description not specified in source. Likely represents the sensitivity level. ### Response * byte[] - The constructed setup byte array. ``` -------------------------------- ### getContext Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/IPenAdt.html Gets the Android context. ```APIDOC ## getContext ### Description Provides access to the Android application context. ### Method Not specified (likely a method call in an SDK) ### Return Type android.content.Context ``` -------------------------------- ### buildPenSensitivitySetup Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-2.html Builds the pen sensitivity setup byte array. This allows adjustment of the pen's pressure sensitivity. ```APIDOC ## buildPenSensitivitySetup(short) ### Description Builds the pen sensitivity setup byte array. This allows adjustment of the pen's pressure sensitivity. ### Method Static method ### Endpoint N/A (SDK method) ### Parameters * **short** - Description not specified in source. Likely represents the sensitivity level. ### Response * byte[] - The constructed setup byte array. ``` -------------------------------- ### getConnectingDevice Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/BTLEAdt.html Gets the device that is currently being connected to. ```APIDOC ## getConnectingDevice() ### Description Gets the device that is currently being connected to. ### Method `getConnectingDevice` ### Returns - **String** - The name of the device being connected to. ``` -------------------------------- ### buildPenAutoPowerSetup Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/ProtocolParser20.html Builds a byte array to configure the pen's auto-power on/off feature. Uses CMD20.REQ_PenStatus and REQ_PenStatusChange_TYPE_AutoPowerOnSet. ```APIDOC ## buildPenAutoPowerSetup ### Description Builds a byte array to configure the pen's auto-power on/off setting. This command uses CMD20.REQ_PenStatus with the subtype REQ_PenStatusChange_TYPE_AutoPowerOnSet. ### Method static byte[] buildPenAutoPowerSetup(boolean on) ### Parameters #### Path Parameters - **on** (boolean) - Required - Set to true to enable auto-power on, false to disable. ``` -------------------------------- ### getPenAddress Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/IPenAdt.html Gets the MAC address of the pen. ```APIDOC ## getPenAddress ### Description Retrieves the MAC address of the pen. This can be the Bluetooth (BT) MAC address or the BLE virtual MAC address. ### Method Not specified (likely a method call in an SDK) ### Return Type String ``` -------------------------------- ### buildPenTipColorSetup Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/ProtocolParser.html Builds a byte array to set the pen tip color. ```APIDOC ## buildPenTipColorSetup ### Description Builds a byte array to set the pen tip color. ### Method static byte[] ### Parameters #### Path Parameters - **color** (int) - Required - The color value for the pen tip. ### Returns - **byte[]** - The constructed byte array. ``` -------------------------------- ### reqAutoPowerSetupOnOff Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-18.html Requests to turn the auto power setup on or off. This method is available in CommandManager and CommProcessor classes. ```APIDOC ## reqAutoPowerSetupOnOff ### Description Requests to turn the auto power setup on or off. This method is available in CommandManager and CommProcessor classes. ### Method Not specified (likely a method call in an SDK) ### Endpoint Not applicable (SDK method) ### Parameters * **boolean** - Required - Specifies whether to turn auto power setup on or off. ### Response Not specified. ``` -------------------------------- ### buildPenCapOnOffSetup(boolean) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-2.html Builds a pen cap on/off setup byte array for ProtocolParser20. This corresponds to 0x04 CMD20.REQ_PenStatus and 0x03 REQ_PenStatusChange_TYPE_PenCapOnOff. It supports model updates for NAP400 and NWP-F51. ```APIDOC ## buildPenCapOnOffSetup(boolean) ### Description Builds a pen cap on/off setup byte array for ProtocolParser20. This corresponds to 0x04 CMD20.REQ_PenStatus and 0x03 REQ_PenStatusChange_TYPE_PenCapOnOff. It supports model updates for NAP400 and NWP-F51. ### Method Static method ### Endpoint N/A (SDK method) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) - **byte[]**: Response byte array #### Response Example N/A ``` -------------------------------- ### getConnectDeviceName Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/IPenAdt.html Gets the name of the connected device. ```APIDOC ## getConnectDeviceName ### Description Retrieves the name of the currently connected device. ### Method Not specified (likely a method call in an SDK) ### Return Type String ``` -------------------------------- ### reqAutoPowerSetupOnOff Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/CommandManager.html Requests to enable or disable the auto power setup feature on the pen. ```APIDOC ## reqAutoPowerSetupOnOff ### Description Requests to enable or disable the auto power setup feature on the pen. ### Method `reqAutoPowerSetupOnOff` ### Parameters #### Path Parameters - **isOn** (boolean) - Required - True to enable auto power setup, false to disable. ``` -------------------------------- ### getConn Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/CommandManager.html Gets the current connection object. ```APIDOC ## getConn ### Description Gets the current connection object. ### Method public abstract IConnectedThread ### Returns - IConnectedThread: The current connection object. ``` -------------------------------- ### EstablishCommand Instantiation Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/EstablishCommand.html Instantiates a new Establish command with the provided key and comp parameters. ```APIDOC ## EstablishCommand Constructor ### Description Instantiates a new Establish command. ### Parameters * **key** (any) - the key * **comp** (any) - the comp ``` -------------------------------- ### EstablishCommand Class Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/package-frame.html Command to establish a connection. ```APIDOC ## Class EstablishCommand ### Description This command is likely used to establish a Bluetooth connection with the NeoLAB pen. ### Methods (Specific methods for this command are not detailed in the provided source.) ``` -------------------------------- ### getStatus() Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the status from a Chunk object. ```APIDOC ## getStatus() ### Description Gets the status from a Chunk object. ### Method Available in kr.neolab.sdk.pen.bluetooth.lib.Chunk. ### Endpoint N/A (SDK method) ### Parameters None ``` -------------------------------- ### IPenAdt.getPenBtName Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the Bluetooth name of the pen. ```APIDOC ## getPenBtName() ### Description Get Pen Bt Name. ### Method (Not specified, likely a getter) ### Endpoint (Not applicable, SDK method) ``` -------------------------------- ### buildPenTipColorSetup Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/ProtocolParser20.html Builds the byte array for setting the pen tip color. Corresponds to CMD20.REQ_PenStatusChange_TYPE_LEDColorSet. ```APIDOC ## buildPenTipColorSetup ### Description Builds the byte array for setting the pen tip color. ### Method static byte[] ### Endpoint buildPenTipColorSetup(int color) ### Parameters * **color** (int) - Required - The color to set for the pen tip. ### Response - byte[]: The byte array representing the pen tip color setup request. ``` -------------------------------- ### getSDKVerions Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/samplecode/PenClientCtrl.html Get the SDK version string. ```APIDOC ## getSDKVerions ### Description Get the SDK version string. ### Method static ### Response #### Success Response (200) - **java.lang.String** - The SDK version string. ``` -------------------------------- ### FwUpgradeCommand20 Constructor Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/FwUpgradeCommand20.html Instantiates a new FwUpgradeCommand20 object. This command is used for firmware upgrades. ```APIDOC ## FwUpgradeCommand20 Constructor ### Description Instantiates a new Fw upgrade command 20. ### Parameters * **key** (int) - The key identifier for the command. * **comp** (CommandManager) - The CommandManager instance to associate with this command. ``` -------------------------------- ### getSDKVerions Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/samplecode/MultiPenClientCtrl.html Get the SDK version string. ```APIDOC ## getSDKVerions() ### Description Retrieves the version string of the SDK. ### Method Instance method call ### Parameters None ### Request Example ```java String sdkVersion = multiPenClientCtrl.getSDKVerions(); ``` ### Response #### Success Response (200) - **String** - The SDK version string. ``` -------------------------------- ### buildPenSensitivitySetup(short sensitivity) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/ProtocolParser.html Builds a byte array to set the pen's sensitivity level. ```APIDOC ## buildPenSensitivitySetup(short sensitivity) ### Description Builds a byte array to set the pen's sensitivity level. ### Method static byte[] ### Parameters #### Path Parameters - **sensitivity** (short) - Required - The sensitivity level. ``` -------------------------------- ### create Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/samplecode/provider/DbOpenHelper.html Creates the database. ```APIDOC ## create ### Description Creates the database. ### Method create ### Returns - **void** ``` -------------------------------- ### getConnectingDevice Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/IPenAdt.html Gets the name of the device that is currently connecting. ```APIDOC ## getConnectingDevice ### Description Retrieves the name of the device that is currently in the process of connecting. ### Method Not specified (likely a method call in an SDK) ### Return Type String ``` -------------------------------- ### getSectionId() Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the section ID from an OfflineFile object. ```APIDOC ## getSectionId() ### Description Gets the section ID from an OfflineFile object. ### Method Available in kr.neolab.sdk.pen.offline.OfflineFile. ### Endpoint N/A (SDK method) ### Parameters None ``` -------------------------------- ### CommProcessor20 Constructor Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/comm/CommProcessor20.html Instantiates a new Comm processor 20, establishing a connection with the smartpen. ```APIDOC ## CommProcessor20(IConnectedThread conn, String version) ### Description Instantiates a new Comm processor 20. ### Parameters #### Path Parameters - **conn** (IConnectedThread) - The connection interface for the smartpen. - **version** (String) - The version of the communication protocol. ### Constructor `CommProcessor20(IConnectedThread conn, String version)` ``` -------------------------------- ### buildPasswordSetup(String, String) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-2.html Builds a password setup byte array. This method is part of the ProtocolParser class. ```APIDOC ## buildPasswordSetup(String, String) ### Description Builds a password setup byte array. This method is part of the ProtocolParser class. ### Method Static method ### Endpoint N/A (SDK method) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) - **byte[]**: Response byte array #### Response Example N/A ``` -------------------------------- ### getResultCode() Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the result code from a Packet object. ```APIDOC ## getResultCode() ### Description Gets the result code from a Packet object. ### Method Available in kr.neolab.sdk.pen.bluetooth.lib.Packet. ### Endpoint N/A (SDK method) ### Parameters None ``` -------------------------------- ### BTLEAdt.getProtocolVersion() Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the protocol version from the BTLEAdt class. ```APIDOC ## getProtocolVersion() ### Description Retrieves the protocol version associated with the Bluetooth Low Energy connection. ### Method Not specified (Class method) ### Endpoint Not applicable (SDK method) ### Parameters None ### Response - **protocolVersion** (String) - The protocol version. ``` -------------------------------- ### reqFwUpgrade2 (File, String, boolean) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/BTAdt.html Initiates a firmware upgrade for the pen with a specified firmware file, version, and compression status. ```APIDOC ## reqFwUpgrade2(File fwFile, String fwVersion, boolean isCompress) ### Description Initiates a firmware upgrade for the pen, with an option for compression. ### Method Not specified (likely a method call in an SDK) ### Parameters * **fwFile** (File) - The firmware file to use for the upgrade. * **fwVersion** (String) - The version of the firmware. * **isCompress** (boolean) - Indicates if the firmware is compressed. ``` -------------------------------- ### BTAdt.getProtocolVersion() Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the protocol version from the BTAdt class. ```APIDOC ## getProtocolVersion() ### Description Retrieves the protocol version associated with the Bluetooth connection. ### Method Not specified (Class method) ### Endpoint Not applicable (SDK method) ### Parameters None ### Response - **protocolVersion** (String) - The protocol version. ``` -------------------------------- ### P_PenStatusSetup Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/CMD.html Represents the command to set up the pen's status reporting. ```APIDOC ## P_PenStatusSetup ### Description The constant P_PenStatusSetup is used to configure how the pen reports its status. ### Type `int` ### Usage This is a constant value and does not have a direct method call. It is used internally by the SDK. ``` -------------------------------- ### PenClientCtrl.getProtocolVersion() Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the protocol version from the PenClientCtrl class. ```APIDOC ## getProtocolVersion() ### Description Retrieves the protocol version associated with the pen. ### Method Not specified (Class method) ### Endpoint Not applicable (SDK method) ### Parameters None ### Response - **protocolVersion** (String) - The protocol version. ``` -------------------------------- ### reqFwUpgrade2 (File, String) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/BTAdt.html Initiates a firmware upgrade for the pen with a specified firmware file and version. ```APIDOC ## reqFwUpgrade2(File fwFile, String fwVersion) ### Description Initiates a firmware upgrade for the pen. ### Method Not specified (likely a method call in an SDK) ### Parameters * **fwFile** (File) - The firmware file to use for the upgrade. * **fwVersion** (String) - The version of the firmware. ``` -------------------------------- ### Stroke.getPath Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the path data for a Stroke object. ```APIDOC ## getPath() ### Description Gets path. ### Method (Not specified, likely a getter) ### Endpoint (Not applicable, SDK method) ``` -------------------------------- ### FwUpgradeCommand Class Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/package-frame.html Command for firmware upgrade. ```APIDOC ## Class FwUpgradeCommand ### Description This command is used to initiate a firmware upgrade process for the NeoLAB pen. ### Methods (Specific methods for this command are not detailed in the provided source.) ``` -------------------------------- ### BTAdt.ConnectedThread.getIsEstablished Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the established status of the Bluetooth connection. ```APIDOC ## getIsEstablished() ### Description Gets the established status of the Bluetooth connection. ### Method Not specified (likely SDK method call) ### Endpoint Not applicable (SDK method) ### Parameters None ### Response Description not specified ``` -------------------------------- ### buildPasswordSetup(java.lang.String oldPassword, java.lang.String newPassword) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/ProtocolParser.html Builds a byte array to set a new password for the pen, requiring the old password. ```APIDOC ## buildPasswordSetup(java.lang.String oldPassword, java.lang.String newPassword) ### Description Builds a byte array to set a new password for the pen, requiring the old password. ### Method static byte[] ### Parameters #### Path Parameters - **oldPassword** (java.lang.String) - Required - The current password. - **newPassword** (java.lang.String) - Required - The new password to set. ``` -------------------------------- ### getInsideStrokes Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/metadata/IMetadataCtrl.html Gets the Strokes that contain a given Symbol. ```APIDOC ## getInsideStrokes(Symbol symbol, Stroke[] strokes) ### Description Gets the Strokes that contain a given Symbol. ### Method [Method details not specified in source] ### Parameters #### Path Parameters - **symbol** (Symbol) - Required - The Symbol to find containing strokes. - **strokes** (Stroke[]) - Required - An array of Strokes to search within. ### Response #### Success Response - **Stroke[]** - An array of Strokes that contain the symbol. ### Response Example [Response example not specified in source] ``` -------------------------------- ### buildPenBeepSetup(boolean) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-2.html Builds a pen beep setup byte array. This method is part of the ProtocolParser class. ```APIDOC ## buildPenBeepSetup(boolean) ### Description Builds a pen beep setup byte array. This method is part of the ProtocolParser class. ### Method Static method ### Endpoint N/A (SDK method) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) - **byte[]**: Response byte array #### Response Example N/A ``` -------------------------------- ### get Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/ink/structure/Stroke.html Retrieves a specific Dot from the Stroke by its index. ```APIDOC ## get ### Description Retrieves a specific Dot from the Stroke by its index. ### Method public Dot get(int index) ### Parameters #### Path Parameters - `index` (int) - Required - The sequence number corresponding to the point ### Returns - Dot - The Dot object at the specified index. ``` -------------------------------- ### buildPenBeepSetup(boolean) - ProtocolParser20 Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-2.html Builds a pen beep setup byte array for ProtocolParser20. This corresponds to 0x04 CMD20.REQ_PenStatus and 0x05 REQ_PenStatusChange_TYPE_BeepOnOff. ```APIDOC ## buildPenBeepSetup(boolean) - ProtocolParser20 ### Description Builds a pen beep setup byte array for ProtocolParser20. This corresponds to 0x04 CMD20.REQ_PenStatus and 0x05 REQ_PenStatusChange_TYPE_BeepOnOff. ### Method Static method ### Endpoint N/A (SDK method) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) - **byte[]**: Response byte array #### Response Example N/A ``` -------------------------------- ### getProtocolVersion Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/samplecode/PenClientCtrl.html Gets the protocol version supported by the pen. ```APIDOC ## getProtocolVersion ### Description Gets the protocol version supported by the pen. ### Method static ### Response #### Success Response (200) - **int** - The protocol version. ``` -------------------------------- ### EstablishCommand Class Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/package-summary.html Command to establish a connection or session. ```APIDOC ## Class: EstablishCommand ### Description Represents a command used to establish a connection or session with the pen. This is typically one of the first commands executed after pairing. ### Constructor * **EstablishCommand()**: Creates a new instance of the EstablishCommand. ``` -------------------------------- ### getPenFWVersion Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/samplecode/PenClientCtrl.html Gets the firmware version of the connected pen. ```APIDOC ## getPenFWVersion ### Description Gets the firmware version of the connected pen. ### Method static ### Response #### Success Response (200) - **java.lang.String** - The firmware version of the pen. ``` -------------------------------- ### getProtocolVersion Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/samplecode/MultiPenClientCtrl.html Gets the protocol version used by the pen. ```APIDOC ## getProtocolVersion(String macAddress) ### Description Gets the protocol version of the pen. Requires the pen's MAC address. ### Method Instance method call ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```java String protocolVersion = multiPenClientCtrl.getProtocolVersion(penMacAddress); ``` ### Response #### Success Response (200) - **String** - The protocol version. ``` -------------------------------- ### getStartPage Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/metadata/MetadataCtrl.html Retrieves the start page ID for a given note. ```APIDOC ## getStartPage ### Description Retrieves the start page ID for a given note. ### Method Not specified (likely a getter method in an SDK) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Parameters * **noteId** (int) - Required - The ID of the note. ### Response #### Success Response (200) * **start page** (int) - The ID of the start page for the note. ### Response Example ```json { "startPage": 1 } ``` ``` -------------------------------- ### upgradePen Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/MultiPenCtrl.html Initiates a firmware upgrade for the pen. This method requires the pen's MAC address and a File object containing the firmware. It may throw a ProtocolNotSupportedException if the pen's protocol does not support this operation. ```APIDOC ## upgradePen ### Description To upgrade the firmware of the pen. ### Method Not applicable (SDK method) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Parameters - **address** (String) - Required - MAC address of the pen. - **fwFile** (File) - Required - Object of the firmware file. ### Throws - **ProtocolNotSupportedException** - If the pen's protocol does not support this operation. ``` -------------------------------- ### buildPenSensitivitySetup Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/ProtocolParser20.html Builds a byte array to set the pen's sensitivity level. ```APIDOC ## buildPenSensitivitySetup ### Description Builds a byte array to set the pen's sensitivity level. This corresponds to CMD20.REQ_PenStatus with REQ_PenStatusChange_TYPE_SensitivitySet. ### Method static byte[] ### Endpoint buildPenSensitivitySetup(short sensitivity) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **sensitivity** (short) - Required - The sensitivity level to set. ### Request Example None ### Response #### Success Response - byte[]: The constructed byte array. #### Response Example None ``` -------------------------------- ### getStartPage Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/metadata/IMetadataCtrl.html Retrieves the starting page number for a given note. ```APIDOC ## getStartPage ### Description Retrieves the starting page number for a given note. ### Method GET ### Endpoint /metadata/note/{noteId}/startPage ### Parameters #### Path Parameters - **noteId** (int) - Required - The ID of the note. ### Response #### Success Response (200) - **startPage** (int) - The starting page number of the note. ``` -------------------------------- ### buildPenSensitivitySetup Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/ProtocolParser.html Builds a byte array to set the pen's sensitivity. ```APIDOC ## buildPenSensitivitySetup ### Description Builds a byte array to set the pen's sensitivity. ### Method static byte[] ### Parameters #### Path Parameters - **sensitivity** (short) - Required - The pen sensitivity level. ### Returns - **byte[]** - The constructed byte array. ``` -------------------------------- ### getExternalStoragePath Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/offline/OfflineFileParser.html Gets the external storage path available on the device. ```APIDOC ## getExternalStoragePath ### Description Gets the external storage path available on the device. ### Method `static String getExternalStoragePath()` ### Returns * `String` - the external storage path ``` -------------------------------- ### finish Method Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/FwUpgradeCommand20.html Marks the firmware upgrade command as finished. ```APIDOC ## finish() ### Description Finishes the firmware upgrade command. ### Method `void finish()` ``` -------------------------------- ### getContext Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/BTLEAdt.html Gets the Android Context associated with the BTLEAdt instance. ```APIDOC ## getContext() ### Description get Context ### Method `getContext` ### Returns - **android.content.Context** - The Android Context. ``` -------------------------------- ### getSPPMacAddress() Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the SPP MAC address from a ConnectedThread object. ```APIDOC ## getSPPMacAddress() ### Description Gets the SPP MAC address from a ConnectedThread object. ### Method Available in kr.neolab.sdk.pen.bluetooth.BTLEAdt.ConnectedThread. ### Endpoint N/A (SDK method) ### Parameters None ``` -------------------------------- ### run Method Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/FwUpgradeCommand20.html Executes the firmware upgrade process. This method is part of the Runnable interface. ```APIDOC ## run() ### Description Executes the firmware upgrade command. ### Method `void run()` ``` -------------------------------- ### IConnectedThread.getIsEstablished Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the established status of the connection from the IConnectedThread interface. ```APIDOC ## getIsEstablished() ### Description Gets the established status of the connection from the IConnectedThread interface. ### Method Not specified (likely SDK method call) ### Endpoint Not applicable (SDK method) ### Parameters None ### Response Description not specified ``` -------------------------------- ### BTOfflineAdt.ConnectedThread.getIsEstablished Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the established status of the offline Bluetooth connection. ```APIDOC ## getIsEstablished() ### Description Gets the established status of the offline Bluetooth connection. ### Method Not specified (likely SDK method call) ### Endpoint Not applicable (SDK method) ### Parameters None ### Response Description not specified ``` -------------------------------- ### upgradePen Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/samplecode/PenClientCtrl.html Initiates a firmware upgrade for the pen using a firmware file. ```APIDOC ## upgradePen ### Description Initiates a firmware upgrade for the pen using a firmware file. ### Parameters #### Path Parameters - **fwFile** (java.io.File) - The firmware file to use for the upgrade. ### Method Not specified (likely a method call within an SDK) ### Endpoint Not applicable (SDK method) ### Request Example Not available ### Response #### Success Response Return type: void (no explicit return value documented) #### Response Example Not available ``` -------------------------------- ### upgradePen Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/samplecode/MultiPenClientCtrl.html Initiates the firmware upgrade process for a Neo smartpen. ```APIDOC ## upgradePen ### Description Upgrades the firmware of the Neo smartpen identified by the MAC address using the provided firmware file. ### Method public void upgradePen(String macAddress, File fwFile) ### Parameters #### Path Parameters * **macAddress** (String) - The MAC address of the pen to upgrade. * **fwFile** (File) - The firmware file to be used for the upgrade. ### Parameters #### Path Parameters * **fwFile** (File) - the fw file ``` -------------------------------- ### getValue() Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/ink/structure/DotType.html Gets the integer value associated with the dot type. ```APIDOC ## getValue() ### Description Gets the integer value associated with the dot type. ### Returns the integer value ``` -------------------------------- ### DbOpenHelper Constructor Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/samplecode/provider/DbOpenHelper.html Initializes a new instance of the DbOpenHelper class. ```APIDOC ## Constructor DbOpenHelper ### Description Initializes a new instance of the DbOpenHelper class. ### Method DbOpenHelper ### Parameters #### Path Parameters - **context** (android.content.Context) - Required - The application context. ``` -------------------------------- ### getStartPage Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/metadata/IMetadataCtrl.html Retrieves the starting page number of a note given its ID. ```APIDOC ## getStartPage ### Description Retrieves the starting page number of a note given its ID. ### Method int ### Parameters #### Path Parameters - **noteId** (int) - Required - The ID of the note. ### Returns - **start page** (int) - The starting page number of the note. ``` -------------------------------- ### write() Method Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/EstablishCommand.html Handles the writing of data associated with the establish command. This is a protected method used internally. ```APIDOC ## write() ### Description Write. ### Method protected void ### Endpoint N/A (SDK method) ``` -------------------------------- ### Get Pen Bluetooth Name Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/BTOfflineAdt.html Retrieves the Bluetooth name of the pen. ```APIDOC ## getPenBtName ### Description Retrieves the Bluetooth name of the pen. ### Method `getPenBtName()` ### Returns - `java.lang.String` - The pen's Bluetooth name. ``` -------------------------------- ### upgradePen2 (with compression) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/IPenCtrl.html Requests firmware upgrade. Accepts a File object for the firmware, a firmware version string, and a boolean indicating if compression is used. ```APIDOC ## upgradePen2 (with compression) ### Description Requests firmware upgrade. ### Method Not specified (likely a method call in an SDK) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Parameters * **fwFile** (java.io.File) - The firmware file. * **fwVersion** (java.lang.String) - The firmware version. * **isCompress** (boolean) - True if the firmware is compressed, false otherwise. ``` -------------------------------- ### connect(String, String) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-3.html Establishes a connection to the pen using the device address and a specified string. ```APIDOC ## connect(String, String) ### Description Establishes a connection to the smartpen using the provided device address and an additional string parameter, potentially for authentication or configuration. ### Method N/A (SDK Method) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response N/A #### Response Example N/A ``` -------------------------------- ### getLocalTimeOffset Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/ProtocolParser.html Gets the local time offset based on a given timestamp. ```APIDOC ## getLocalTimeOffset ### Description Gets the local time offset based on a given timestamp. ### Method `static int` ### Parameters #### Path Parameters - **timetick** (long) - Description not available ### Response - **int** - Description not available ``` -------------------------------- ### getConnectDeviceName Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/IPenAdt.html Gets the name of the connected device. Supported from Protocol 2.0. ```APIDOC ## getConnectDeviceName ### Description Gets the name of the currently connected device. This method is supported from Protocol 2.0 onwards. ### Method ```java java.lang.String getConnectDeviceName() ``` ### Throws - `ProtocolNotSupportedException`: If the pen's protocol version does not support this feature. ``` -------------------------------- ### getConn Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/comm/CommProcessor.html Gets the connected thread object. This is specified in the CommandManager class. ```APIDOC ## getConn ### Description Gets the connected thread object. ### Method public IConnectedThread getConn() ### Returns the conn (IConnectedThread) ``` -------------------------------- ### ProtocolParser20 Constructor Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/ProtocolParser20.html Initializes a new instance of the ProtocolParser20 class with a specified IParsedPacketListener. ```APIDOC ## ProtocolParser20(IParsedPacketListener listener) ### Description Instantiates a new Protocol parser 20. ### Constructor `ProtocolParser20(ProtocolParser20.IParsedPacketListener listener)` ### Parameters * **listener** (ProtocolParser20.IParsedPacketListener) - The listener to handle parsed packets. ``` -------------------------------- ### reqFwUpgrade2 (File, String) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/IPenAdt.html Initiates a firmware upgrade using Protocol 2.0. This method requires the firmware file and its version. Data compression is enabled by default. ```APIDOC ## reqFwUpgrade2 (File, String) ### Description Initiates a firmware upgrade for the pen, supported from Protocol 2.0. Data compression is enabled by default. ### Method void ### Parameters #### Path Parameters - **fwFile** (java.io.File) - Required - The firmware file. - **fwVersion** (java.lang.String) - Required - The firmware version. ### Throws - **ProtocolNotSupportedException** - If the protocol version does not support this feature. ``` -------------------------------- ### getWidth Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the width of a symbol. This method is part of the Symbol class. ```APIDOC ## getWidth() ### Description Gets width. ### Method N/A (Method Call) ### Endpoint N/A ### Parameters None ### Response N/A ``` -------------------------------- ### getType Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the type of a symbol. This method is part of the Symbol class. ```APIDOC ## getType() ### Description Gets type. ### Method N/A (Method Call) ### Endpoint N/A ### Parameters None ### Response N/A ``` -------------------------------- ### FwUpgradeCommand20 Constructor Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/FwUpgradeCommand20.html Instantiates a new FwUpgradeCommand20 object. This constructor is used to initialize the command with a key and a CommandManager. ```APIDOC ## FwUpgradeCommand20(int key, CommandManager comp) ### Description Instantiates a new FwUpgradeCommand20. ### Parameters #### Path Parameters - **key** (int) - Required - The key for the command. - **comp** (CommandManager) - Required - The CommandManager instance. ### Constructor `FwUpgradeCommand20(int key, CommandManager comp)` ``` -------------------------------- ### getSDKVerions() Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the SDK versions as a string. Available in MultiPenClientCtrl and PenClientCtrl. ```APIDOC ## getSDKVerions() ### Description Gets the SDK versions as a string. ### Method Available in kr.neolab.samplecode.MultiPenClientCtrl and kr.neolab.samplecode.PenClientCtrl. ### Endpoint N/A (SDK method) ### Parameters None ``` -------------------------------- ### buildAutoShutdownTimeSetup(short shutdownTime) Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/lib/ProtocolParser.html Builds a byte array to set the auto-shutdown time for the pen. ```APIDOC ## buildAutoShutdownTimeSetup(short shutdownTime) ### Description Builds a byte array to set the auto-shutdown time for the pen. ### Method static byte[] ### Parameters #### Path Parameters - **shutdownTime** (short) - Required - The auto-shutdown time in minutes. ``` -------------------------------- ### reqFwUpgrade Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/IPenAdt.html Initiates a firmware upgrade for the pen. ```APIDOC ## reqFwUpgrade ### Description Deprecated. reqFwUpgrade(File fwFile, String targetPath) is replaced by reqFwUpgrade2( File fwFile, String fwVersion ) in the protocol 2.0. ### Method N/A (SDK Method) ### Parameters - **fwFile** (File) - The firmware file. - **targetPath** (String) - The target path for the firmware file. ### Response None (void) ``` -------------------------------- ### getName() Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/index-files/index-7.html Gets the name of a Symbol object. This is part of the metadata structure. ```APIDOC ## getName() ### Description Gets the name of the Symbol object. ### Method This is a method call within the SDK. ### Endpoint N/A (SDK Method) ### Parameters None ### Response Returns the name of the symbol. ``` -------------------------------- ### run Method Source: https://github.com/neosmartpen/android-sdk2.0/blob/master/docs/kr/neolab/sdk/pen/bluetooth/cmd/FwUpgradeCommand.html Executes the firmware upgrade command. This method is part of the Runnable interface and is called when the command is processed. ```APIDOC ## run() ### Description Executes the firmware upgrade command. This method is invoked when the command is processed by the CommandManager. ```