[ 
https://issues.apache.org/jira/browse/WEEX-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16102847#comment-16102847
 ] 

ASF GitHub Bot commented on WEEX-62:
------------------------------------

GitHub user miomin opened a pull request:

    https://github.com/apache/incubator-weex/pull/547

    + [android] support new feature image component can save to Photo Album

    support to save the image to Photo Album in image component method
    
    case: http://dotwe.org/vue/55b9f0683f9c8bb9e12788626608da4c
    
    jira issues: https://issues.apache.org/jira/browse/WEEX-62

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/miomin/incubator-weex 
android-feature-0.16-image-save

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-weex/pull/547.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #547
    
----
commit c4cec2b019e2f5a85fd17cd715b4ab0f62446d8b
Author: miomin <[email protected]>
Date:   2017-07-27T07:29:16Z

    + [android] support new feature image component can save to Photo Album

----


> image Component can save image to photo Album or sd card
> --------------------------------------------------------
>
>                 Key: WEEX-62
>                 URL: https://issues.apache.org/jira/browse/WEEX-62
>             Project: Weex
>          Issue Type: New Feature
>            Reporter: xingZhang
>            Assignee: xingZhang
>              Labels: features
>
> image component support save image to photo Album or sd card
> design to support it with component Method.
> so the dsl  will be as follow:
> <image ref='image' 
> src="http://www.fresher.ru/manager_content/images2/kadry-veka/big/2-1.jpg"; 
> style="width:250px;height:250px;background-color:yellow"></image>
> js: 
>   var image = this.$refs.image;
>   image.save(function(result) {
>    console.log(result);
> });  // html5  iOS and Android provide their own component method
> the callback data result format maybe 
>   {
>     "success" : true/false,
>     "errorDesc": "errorDesc" // if the success is false, describe the reason 
> why this action failed.
>   }
> you can try a complete case:
>    case:  http://dotwe.org/vue/55b9f0683f9c8bb9e12788626608da4c



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to