CPSearchFilter

@objc
public class CPSearchFilter : NSObject

Contains key-value pair for directory search which specifies keyword for search and the field type where to search of contacts

  • Type of the filter field.

    Declaration

    Swift

    @objc
    public private(set) var type: CPAddressBook.FieldType { get }
  • Value of the field.

    Declaration

    Swift

    @objc
    public private(set) var value: String! { get }
  • Initializes Search Filter object with the specified keyword(value) and the field type.

    Declaration

    Swift

    @objc
    public init(value: String, forType: CPAddressBook.FieldType)

    Parameters

    value

    Specifies keyword for directory search operations.

    forType

    Specifies field type of search operations.