Oops, more like:
var metadata = { 'icloud_backup' : true };
cordova.exec(success, fail, "File", "setMetadata", [this.fullPath, metadata]);
https://github.com/apache/incubator-cordova-js/blob/master/lib/common/plugin/Entry.js#L44
On Mon, May 7, 2012 at 8:04 PM, Shazron <[email protected]> wrote:
> That sounds great, so the exec call (pseudocode example here) could go
> something like this:
>
> var metadata = { 'icloud_backup' : true };
> cordova.exec(success, fail, "File", "setMetadata", [metadata]);
>
>
> On Mon, May 7, 2012 at 7:58 PM, Simon MacDonald
> <[email protected]> wrote:
>> I'd go with setMetadata(Object). Let the native side interrogate the object
>> to see what metadata needs to be set.
>>
>> Simon
>>
>> On Monday, May 7, 2012, Filip Maj wrote:
>>
>>> getMetadata exists, so setMetadata makes sense. W3C has no equivalent, our
>>> users need it, I say do it.
>>>
>>> On 5/7/12 5:24 PM, "Shazron" <[email protected] <javascript:;>> wrote:
>>>
>>> >I don't know if we can extend the File API (I know it's W3C) or have
>>> >an iOS specific function -- but iOS is in sore need of this
>>> >functionality because of app rejection (re: iCloud requirements):
>>> >https://issues.apache.org/jira/browse/CB-471
>>> >
>>> >I'm thinking a FileEntry.setExtendedAttribute or FileEntry.setMetadata
>>> >function or something. Thoughts?
>>>
>>>
>>
>> --
>> Simon Mac Donald
>> http://hi.im/simonmacdonald