|
4 | 4 |
|
5 | 5 | They make it easier and more natural for you to develop scripts and avoid a lot of unnecessary details. |
6 | 6 |
|
7 | | -## 🎯 Plugin Registration API |
8 | | - |
9 | | -Before you start writing code for your plugin, you first need to provide the loader with some plugin-related information. |
10 | | - |
11 | | -`ll.registerPlugin(name, introduction, version, otherInformation)` |
12 | | - |
13 | | -- Parameters: |
14 | | - |
15 | | - - name : `String` |
16 | | - Plugin Name |
17 | | - |
18 | | - - introduction : `String` |
19 | | - A short description of the plugin. |
20 | | - |
21 | | - - version : `Array<Integer,Integer,Integer[,VersionStatus]>` |
22 | | - Plugin version information. |
23 | | - |
24 | | - For `VersionStatus`, the following enumeration can be used |
25 | | - | Enum | Description | |
26 | | - | --------- | ---------------------------------- | |
27 | | - | `Release` | Official release version (default) | |
28 | | - | `Beta` | Test version | |
29 | | - | `Dev` | Development Version | |
30 | | - |
31 | | - - other : `Object<string,string>` |
32 | | - Other additional information you are willing to provide (such as license, open source address, etc.) |
33 | | - |
34 | | -Among them, version version information is an array of version number numbers, such as `[2,0,1]` indicates that the version number is 2.0.1 |
35 | | -If you do not pass in valid version information, the version number of the plugin will be set to the default value `1.0.0` |
36 | | - |
37 | | -For plugin additional information, you can pass in any information you need to inform the user in the same format as `Object` key-value pair. The specific data of the key-value pair needs to be `String` format. |
38 | | - |
39 | | -<br> |
40 | | - |
41 | 7 | ## 💼 Script Assist API |
42 | 8 |
|
43 | 9 | The following APIs add necessary auxiliary interfaces to scripts. |
@@ -164,4 +130,4 @@ The bottom layer has lock protection, different `fastLog` There will be no strin |
164 | 130 | - Return value type: `Boolean` |
165 | 131 | - If it returns `Null`, the cancellation of the task failed. |
166 | 132 |
|
167 | | -<br> |
| 133 | +<br> |
0 commit comments