Easy integration on iOS 9 Spotlight. Indexing and handling user activity
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DPSpotlight
Example
LICENSE
README.md

README.md

DPSpotlight

Easy integration on iOS 9 Spotlight. Indexing and handling user activity.

DPSpotlight

How to USE

  1. Call initiate DPSpotlight method
[DPSpotlight startWithLaunchOptions:launchOptions launchBlock:^(NSUserActivity * _Nonnull userActivity) {
  //do something
}]; 

on method

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  1. Call provide DPSpotlight method
[DPSpotlight continueUserActivity:userActivity];

on method

- (BOOL)application:(nonnull UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray * __nullable))restorationHandler
  1. Handle user activity
[DPSpotlight sharedInstance].activityBlock = ^(NSUserActivity * __nonnull userActivity){
  //do something
};