docs(DEVELOPER) Add documentation for CordovaFunctionOverride decorator (#2029)

This commit is contained in:
Niklas Merz 2017-10-11 05:48:27 +02:00 committed by Ibby Hadeed
parent 447aa56e3c
commit 773722b767

View File

@ -210,3 +210,12 @@ someMethod(): Promise<any> {
// anything here will only run if the plugin is available
}
```
#### CordovaFunctionOverride
Wrap a stub function in a call to a Cordova plugin, checking if both Cordova and the required plugin are installed.
Example:
```ts
@CordovaFunctionOverride()
someMethod(): Observable<any> { return; }
```