SearchArg

public class SearchArg : CustomStringConvertible, JSONRepresentable

The SearchArg struct

  • The path in the user’s Dropbox to search. Should probably be a folder.

    Declaration

    Swift

    public let path: String
  • The string to search for. Query string may be rewritten to improve relevance of results. The string is split on spaces into multiple tokens. For file name searching, the last token is used for prefix matching (i.e. “bat c” matches “bat cave” but not “batman car”).

    Declaration

    Swift

    public let query: String
  • The starting index within the search results (used for paging).

    Declaration

    Swift

    public let start: UInt64
  • The maximum number of search results to return.

    Declaration

    Swift

    public let maxResults: UInt64
  • The search mode (filename, filename_and_content, or deleted_filename). Note that searching file content is only available for Dropbox Business accounts.

    Declaration

    Swift

    public let mode: Files.SearchMode
  • Declaration

    Swift

    public var description: String { get }