[TIMOB-25764] Windows: Add support for RequestHeaders for ImageViews
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Windows |
Labels | n/a |
Reporter | Rene Pot |
Assignee | Kota Iguchi |
Created | 2018-02-09T00:47:34.000+0000 |
Updated | 2018-03-01T14:04:25.000+0000 |
Description
A lot of times an image requires requestheaders, like oAuth/basic auth or others before it can be loaded. Right now a workaround is needed to get these images (doing a XHR call to fetch images, then insert it into imageview).
However, by adding support for requestheaders to ImageViews a workaround would not be needed anymore.
A possible example of implementation:
Ti.UI.createImageView({
url: 'http://example.com/my_image.png',
requestHeaders: {
'Authorization' : 'Bearer myToken'
}
});
No comments