|
| 1 | +// |
| 2 | +// BNCContentDiscoveryManager.h |
| 3 | +// Branch-TestBed |
| 4 | +// |
| 5 | +// Created by Graham Mueller on 7/17/15. |
| 6 | +// Copyright © 2015 Branch Metrics. All rights reserved. |
| 7 | +// |
| 8 | + |
| 9 | +#import "Branch.h" |
| 10 | + |
| 11 | +@interface BNCContentDiscoveryManager : NSObject |
| 12 | + |
| 13 | +- (NSString *)spotlightIdentifierFromActivity:(NSUserActivity *)userActivity; |
| 14 | +- (NSString *)standardSpotlightIdentifierFromActivity:(NSUserActivity *)userActivity; |
| 15 | + |
| 16 | +- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description; |
| 17 | + |
| 18 | +- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description callback:(callbackWithUrl)callback; |
| 19 | + |
| 20 | +- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable callback:(callbackWithUrl)callback; |
| 21 | + |
| 22 | +- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type callback:(callbackWithUrl)callback; |
| 23 | + |
| 24 | +- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl callback:(callbackWithUrl)callback; |
| 25 | + |
| 26 | +- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords callback:(callbackWithUrl)callback; |
| 27 | + |
| 28 | +- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords; |
| 29 | + |
| 30 | +- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords userInfo:(NSDictionary *)userInfo; |
| 31 | + |
| 32 | +- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable thumbnailUrl:(NSURL *)thumbnailUrl userInfo:(NSDictionary *)userInfo; |
| 33 | + |
| 34 | +- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords userInfo:(NSDictionary *)userInfo; |
| 35 | + |
| 36 | +- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords userInfo:(NSDictionary *)userInfo callback:(callbackWithUrl)callback; |
| 37 | + |
| 38 | +- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords userInfo:(NSDictionary *)userInfo expirationDate:(NSDate *)expirationDate callback:(callbackWithUrl)callback; |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | +/* This one has a different callback, which includes the spotlightIdentifier, and requires a different signature |
| 43 | + It cannot be part of the stack of method signatures above, because of the different callback type.*/ |
| 44 | +- (void)indexContentWithTitle:(NSString *)title description:(NSString *)description publiclyIndexable:(BOOL)publiclyIndexable type:(NSString *)type thumbnailUrl:(NSURL *)thumbnailUrl keywords:(NSSet *)keywords userInfo:(NSDictionary *)userInfo expirationDate:(NSDate *)expirationDate callback:(callbackWithUrl)callback spotlightCallback:(callbackWithUrlAndSpotlightIdentifier)spotlightCallback; |
| 45 | + |
| 46 | + |
| 47 | +@end |
0 commit comments