[TIMOB-19415] iOS9: Expose UTType constants for SearchableItemAttributeSet
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-08-28T20:15:22.000+0000 |
Affected Version/s | Release 5.0.0 |
Fix Version/s | Release 5.0.0 |
Components | iOS |
Labels | spotlight |
Reporter | Benjamin Hatfield |
Assignee | Eric Merriman |
Created | 2015-08-26T18:11:56.000+0000 |
Updated | 2017-03-27T22:14:48.000+0000 |
Description
For the Titanium.App.iOS.createSearchableItemAttributeSet method, you are required to set the itemContentType property.
https://developer.apple.com/library/prerelease/ios/documentation/CoreSpotlight/Reference/CSSearchableItemAttributeSet_Class/index.html#//apple_ref/occ/instm/CSSearchableItemAttributeSet/initWithItemContentType:
To make it easier for developer, we should expose the constants.
From this reference, it seems like Text, Composite, Image and Audio Visual should be exposed:
https://developer.apple.com/library/prerelease/ios/documentation/MobileCoreServices/Reference/UTTypeRef/index.html#//apple_ref/doc/constant_group/
As a work around, they can use the identifier values from this table for now:
https://developer.apple.com/library/ios/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html
Tried the following and I get: [ERROR] field thumbnailUrl is invalid
[~rblalock] I think URL should be all uppercased for
thumbnailURL
: http://appcelerator.github.io/appc-docs/latest/#!/api/Titanium.App.iOS.SearchableItemAttributeSet-property-thumbnailURLOk I'll try this. Was going off the iOS property name.
PR Here: https://github.com/appcelerator/titanium_mobile/pull/7085 [~bhatfield], I have exposed text, composite, image and audio visual as you requested. However, sorry I didn't write the docs for these in apidocs. Let me know if we need anything else.
https://github.com/appcelerator/titanium_mobile/pull/7087
Closing ticket as fixed.