Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
en:sdk_api [2018/12/14 15:30]
simba created
en:sdk_api [2019/01/02 10:46]
simba
Line 9: Line 9:
   * ''​listener''​ : A callback listener that receives callback data from the device.   * ''​listener''​ : A callback listener that receives callback data from the device.
 <callout type="​info">​ <callout type="​info">​
-[[references#​DeviceListener|DeviceListener]]+[[references#​DeviceListener|Refer to DeviceListener ​Class]]
 </​callout>​ </​callout>​
 <callout type="​info"​ icon="​true">​ <callout type="​info"​ icon="​true">​
Line 28: Line 28:
 \\ \\
  
-=====getVersion===== +=====getVersions===== 
-Get the SDK/​Firmware ​version+Get the SDK/​Firmware ​versions
 <code java> <code java>
-int getVersion(Version version)+int getVersions(Versions versions)
 </​code>​ </​code>​
 ===Parameters=== ===Parameters===
-  * ''​version''​ : SDK/​Firmware ​version+  * ''​versions''​ : version information(SDK / Firmware ​/ Fingerprint library / Card library)
 <callout type="​info">​ <callout type="​info">​
-[[references#​Version|Version]]+[[references#​Version|Refer to Version ​Class]]
 </​callout>​ </​callout>​
 ===Return Code=== ===Return Code===
 Returns "​SUCCESS"​ if successfully launched; returns the corresponding error code if an error occurs. Returns "​SUCCESS"​ if successfully launched; returns the corresponding error code if an error occurs.
 +
 +\\
 +=====getDeviceInfo=====
 +Get the device information.
 +<code java>
 +int getDeviceInfo(Device device)
 +</​code>​
 +===Parameters===
 +  * ''​device''​ : device information
 +<callout type="​info">​
 +[[references#​Device |Refer to Device Class]]
 +</​callout>​
 +===Return Code===
 +Returns "​SUCCESS"​ if successfully launched; returns the corresponding error code if an error occurs.
 +
 +\\
 +=====setAutoStartApplication=====
 +Automatically launch the application when Android starts.
 +<code java>
 +int setAutoStartApplication(boolean enable)
 +</​code>​
 +===Return Code ===
 +Returns "​SUCCESS"​ if successfully launched; returns the corresponding error code if an error occurs. ​
  
 \\ \\
Line 48: Line 71:
 </​code>​ </​code>​
 ===Parameters=== ===Parameters===
-  * ''​cardType''​ : Parameters+  * ''​cardType''​ : RF Card type
 <WRAP group 50%> <WRAP group 50%>
 ^  No.  ^ Description ​ ^ ^  No.  ^ Description ​ ^
Line 58: Line 81:
 ===Return Code=== ===Return Code===
 Returns "​SUCCESS"​ if successfully launched; returns the corresponding error code if an error occurs. Returns "​SUCCESS"​ if successfully launched; returns the corresponding error code if an error occurs.
 +<callout type="​info"​ icon="​true">​
 +It is set up automatically on the device. Used only when card type change is required.
 +</​callout>​
  
 \\ \\
Line 68: Line 94:
   * ''​option'':​ Firmware file option.   * ''​option'':​ Firmware file option.
 <callout type="​info">​ <callout type="​info">​
-[[references#​FirmwareOption|FirmwareOption]]+[[references#​FirmwareOption|Refer to FirmwareOption ​Class]]
 </​callout>​ </​callout>​
 ===Return Code=== ===Return Code===
Line 99: Line 125:
  
 \\ \\
-=====getFirmwareFileList=====+=====getFtpFileList=====
 Get a list of file names for the FTP server. Get a list of file names for the FTP server.
 <code java> <code java>
-int getFirmwareFileList(ArrayList<​String>​ fileList)+int getFtpFileList(ArrayList<​String>​ fileList)
 </​code>​ </​code>​
 ===Parameters=== ===Parameters===
Line 113: Line 139:
 <code xml> <code xml>
 <​uses-permission android:​name="​android.permission.INTERNET"/>​ <​uses-permission android:​name="​android.permission.INTERNET"/>​
-<​uses-permission android:​name="​android.permission.WRITE_EXTERNAL_STORAGE"​ /> 
 </​code>​ </​code>​
 </​callout>​ </​callout>​
 +
 +\\
 +=====getUsbFileList=====
 +Get a list of firmware file names for USB.
 +<code java>
 +int getUsbFileList(ArrayList<​String>​ fileList)
 +</​code>​
 +===Parameters===
 +  * ''​fileList'':​ file name list
 +===Return Code===
 +Returns "​SUCCESS"​ if successfully launched; returns the corresponding error code if an error occurs.
  
 \\ \\
Line 126: Line 162:
   * ''​option'':​ Firmware File Option   * ''​option'':​ Firmware File Option
 <callout type="​info">​ <callout type="​info">​
-[[references#​FirmwareOption|FirmwareOption]]+[[references#​FirmwareOption|Refer to FirmwareOption ​Class]]
 </​callout>​ </​callout>​
 ===Return Code=== ===Return Code===