ZDCSearchMatch

@interface ZDCSearchMatch : NSObject <NSCopying>

Provides detailed information concerning which identities matched the search, and where the match occurred. A UI may use this information to highlight the match sequence.

  • A reference to the corresponding ZDCUserIdentity.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull identityID;

    Swift

    var identityID: String { get }
  • The string that matched the user’s query.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull matchingString;

    Swift

    var matchingString: String { get }
  • An array of NSRange values (wrapped in NSValue).

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic)
        NSArray<NSValue *> *_Nonnull matchingRanges;

    Swift

    var matchingRanges: [NSValue] { get }