Project: titanium
Issue TIMOB-19006: iOS9: Implement NSUserActivity Core Spotlight
Implement NSUserActivity to enable Core Spotlight access. The following snippet from Apple shows this could be a straightforward Ti API. {code} // Create an attribute set that specifies a related unique ID for a Core Spotlight item. CSSearchableItemAttributeSet *attributes = [[CSSearchableItemAttributeSet alloc] initWithItemContentType:@"public.image"]; attributes.relatedUniqueIdentifier = coreSpotlightUniqueIdentifier; // Use the attribute set to create an NSUserActivity that's related to a Core Spotlight item. NSUserActivity *userActivity = [[NSUserActivity alloc] initWithActivityType:@“com.mycompany.viewing-message”]; userActivity.contentAttributeSet = attributes; {code}
Story points: 21