Skip to main content

Function

The function module is where the app's behavior is defined. Other modules specify the function module that defines the actions to take.

Manifest example

modules:
function:
- key: item-before-save-function-key
handler: index.runItemBeforeSave
timeout: 30000

Properties

nametyperequireddescription
keyStringYesA key for the module, which other modules can refer to. Must be unique within the manifest.
Regex: ^[a-zA-Z0-9_-]+$
handlerStringYesA pointer to the function responsible for handling invocations.
Expected format: file.function.
For example, index.runItemBeforeSave calls the runItemBeforeSave function defined in index.js in the app's src directory.
timeoutnumberNoThe maximum runtime, default is 30000 milliseconds

Contact us

Mail:

client@oschina.cn

Mobile:

+86 133-5294-7997

+86 136-7025-2304

+86 181-2418-5312

+86 185-0387-0265

Address:

22nd Floor, Cloud Technology Building, Xili Street, Nanshan District, Shenzhen

5th floor, Shoukai Plaza, Huilongguan East Avenue, Changping District, Beijing

Consultant

image

Follow Us

English
Copyright ©2025 北京奥思研工智能科技有限公司京ICP备2025119063号