cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nikhilkh <...@git.apache.org>
Subject [GitHub] cordova-docs pull request: CB-8917: Improving Android lifecycle do...
Date Fri, 22 Jan 2016 05:44:56 GMT
Github user nikhilkh commented on a diff in the pull request:

    https://github.com/apache/cordova-docs/pull/461#discussion_r50503967
  
    --- Diff: www/docs/en/dev/guide/platforms/android/lifecycle.md ---
    @@ -80,14 +150,20 @@ The payload for the `resume` event adheres to the following format:
     {
         action: "resume",
         pendingResult: {
    -        pluginServiceName: <name of the plugin e.g. "Camera">,
    -        pluginStatus: <description of the result's status (see below)>,
    -        result: <argument(s) that would have been given to the callback>
    +        pluginServiceName: string,
    +        pluginStatus: string,
    +        result: any
         }
     }
     ```
     
    -The possible plugin statuses in the `pendingResult` field include the following values:
    +The fields of that payload are defined as follows:
    +
    +* `pluginServiceName`: The name of the plugin return the result (e.g. "Camera"). This
can be found in a plugin's plugin.xml
    +* `pluginStatus`: The status of the plugin call (see below)
    +* `result`: Whatever the result of the plugin call is
    +
    +The possible values for `pluginStatus` in the `pendingResult` field include the following:
    --- End diff --
    
    Remind me again - why the pluginStatus is a string and not some sort of enum? It will
help to explain what each of these statuses mean.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message