Github user dpolivy commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/97#discussion_r32879107
  
    --- Diff: README.md ---
    @@ -456,3 +457,36 @@ after calling `camera.getPicture`. Applies only when 
the value of
         function onFail(message) {
             alert('Failed because: ' + message);
         }
    +
    +## navigator.camera.checkForSavedResult
    +
    +call this method in onDeviceReady to see if there is a result present from 
a previous call to getPicture.
    +add the same options you used when calling getPicture, or leave it out to 
pass default options
    +
    +    navigator.camera.checkForSavedResult( successCallback, errorCallback, 
options );
    +
    +### Description
    +
    +Tries to get the intermediate image file that is kept in temporary storage 
after calling `camera.getPicture`.
    +Applies when the operating system decides to kill our MainActivity while 
getting an Image. 
    +Once our MainActivity restarts you should call this method to see if a 
result is available.
    +
    +If you want to use the same options you used when calling getPicture you 
have to make sure you store the options first,
    +this way you can use your saved options to call checkForSavedResult, so 
the picture get's handled the same as it would have when Android hadn't killed 
our MainActivity
    --- End diff --
    
    No apostrophe in "gets"


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to