SearchResult

public class SearchResult : BoxModel

Files, folders and web links that matched the search query, including the additional information about any shared links through which the item has been shared with the user.

BoxModel

  • Box item type

    Declaration

    Swift

    public var type: String
  • Declaration

    Swift

    public private(set) var rawData: [String : Any] { get }

Properties

  • The optional shared link through which the user has access to this item. This value is only returned for items for which the user has recently accessed the file through a shared link. For all other items this value will return nil.

    Declaration

    Swift

    public let accessibleViaSharedLink: URL?
  • The file, folder or web link that matched the search query.

    Declaration

    Swift

    public let item: FolderItem
  • Initializer.

    Throws

    Decoding error.

    Declaration

    Swift

    public required init(json: [String : Any]) throws

    Parameters

    json

    JSON dictionary