Comunication through apps
npm install content-providerComunication through apps
``bash`
npm install content-provider
npx cap sync
* echo(...)
* test(...)
* getValues()
* insertValue(...)
* deleteValue(...)
* updateValue(...)
* addListener(string, ...)
`typescript`
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
--------------------
`typescript`
test(options: { name: string; }) => Promise<{ result: any; }>
| Param | Type |
| ------------- | ------------------------------ |
| options | { name: string; } |
Returns: Promise<{ result: any; }>
--------------------
`typescript`
getValues() => Promise<{ result: any[]; }>
Returns: Promise<{ result: any[]; }>
--------------------
`typescript`
insertValue(options: { name: string; }) => Promise<{ result: any; }>
| Param | Type |
| ------------- | ------------------------------ |
| options | { name: string; } |
Returns: Promise<{ result: any; }>
--------------------
`typescript`
deleteValue(options: { id: string; }) => Promise<{ result: any; }>
| Param | Type |
| ------------- | ---------------------------- |
| options | { id: string; } |
Returns: Promise<{ result: any; }>
--------------------
`typescript`
updateValue(options: { id: string; name: string; }) => Promise<{ result: any; }>
| Param | Type |
| ------------- | ------------------------------------------ |
| options | { id: string; name: string; } |
Returns: Promise<{ result: any; }>
--------------------
`typescript`
addListener(evtName: string, callback: (a: void) => any) => void
| Param | Type |
| -------------- | -------------------------------- |
| evtName | string |
| callback` | (a: void) => any |
--------------------