You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2018/08/18 16:26:52 UTC
[cordova-plugin-media] branch master updated: add types for
callback in constructor (#90)
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-media.git
The following commit(s) were added to refs/heads/master by this push:
new 7094582 add types for callback in constructor (#90)
7094582 is described below
commit 7094582e72c6ae8fc6aa0382de67f05a75c65989
Author: Danny Willems <co...@danny-willems.be>
AuthorDate: Sat Aug 18 16:26:50 2018 +0000
add types for callback in constructor (#90)
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 48785a2..73d0f07 100644
--- a/README.md
+++ b/README.md
@@ -74,9 +74,9 @@ var media = new Media(src, mediaSuccess, [mediaError], [mediaStatus]);
- __mediaSuccess__: (Optional) The callback that executes after a `Media` object has completed the current play, record, or stop action. _(Function)_
-- __mediaError__: (Optional) The callback that executes if an error occurs. _(Function)_
+- __mediaError__: (Optional) The callback that executes if an error occurs. It takes an integer error code. _(Function)_
-- __mediaStatus__: (Optional) The callback that executes to indicate status changes. _(Function)_
+- __mediaStatus__: (Optional) The callback that executes to indicate status changes. It takes a integer status code. _(Function)_
__NOTE__: `cdvfile` path is supported as `src` parameter:
```javascript
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org