Skip to content

Commit

Permalink
docs(DEVELOPER) Add documentation for CordovaFunctionOverride decorat…
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasMerz authored and ihadeed committed Oct 11, 2017
1 parent 447aa56 commit 773722b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,13 @@ Example:
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; }
```

0 comments on commit 773722b

Please sign in to comment.