Global Variable

CSSearchableItemActionType

Indicates that the activity type to continue is related to a searchable item.

Declaration

NSString *const CSSearchableItemActionType;

Discussion

The CSSearchableItemActionType and CSSearchableItemActivityIdentifier constants help your app restore state or an activity when a user opens a searchable item listed in a search result. When the user opens the item, Handoff calls your app delegate’s application(_:willContinueUserActivityWithType:) method with CSSearchableItemActionType. Handoff also delivers an NSUserActivity object that contains a userInfo dictionary in which the key is CSSearchableItemActivityIdentifier and the associated value is the unique identifier that was used when the item was created. Your app delegate can check for the unique identifier in its application(_:continue:restorationHandler:) method.

To learn more about enabling Handoff in your app, see the Handoff Programming Guide.

See Also

Continuing a Search or Activity

CSSearchableItemActivityIdentifier

Provides the key within the NSUserActivity object’s userInfo dictionary for which the value is the searchable item’s unique identifier .

CSQueryContinuationActionType

Indicates that the activity type to continue is a search or query.

CSSearchQueryString

Provides the key within the NSUserActivity object’s userInfo dictionary for which the value is the string that represents the user’s current query.