capacitor-server
v0.1.4
Published
capacitor plugin for Android simple HTTP server
Downloads
1
Readme
capacitor-server
capacitor plugin for Android simple HTTP server
Install
npm install capacitor-server
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
publish(...)
publish(options: publishOptions) => Promise<publishResult>
| Param | Type |
| ------------- | --------------------------------------------------------- |
| options
| publishOptions |
Returns: Promise<publishResult>
photos(...)
photos(options: PhotoOptions) => Promise<publishResult>
| Param | Type |
| ------------- | ----------------------------------------------------- |
| options
| PhotoOptions |
Returns: Promise<publishResult>
Interfaces
publishResult
| Prop | Type |
| ------------- | -------------------------------------------- |
| success
| boolean |
| msg
| string |
| tiles
| { [propName: string]: string; } |
publishOptions
| Prop | Type |
| --------------- | ------------------- |
| zipPath
| string |
| unzipPath
| string |
| port
| number |
| zip
| File |
PhotoOptions
| Prop | Type |
| ---------- | ------------------- |
| port
| number |
| path
| string |