HorizonOptions
public struct HorizonOptions
extension HorizonOptions: Hashable
Horizon options define the extent of the paths in the horizon and the map attributes to be collected for these paths. A set of horizon options consists of the following: A subscription configuration consists of four types of search options:
- The set of horizon element types the client is interested in
- The path search options for the main path (the path that the user is currently on, extending along the most likely trajectory).
- The path search options for the sub-paths (any horizon path that is not the main path).
- The maximum number of paths the client can receive.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Unique ID of the HorizonOptions
Declaration
Swift
public let id: UUID -
The requested element types.
Declaration
Swift
public let elementTypes: [HorizonElementType] -
The options for searching for the main path
Declaration
Swift
public let mainPathSearchOptions: MainPathSearchOptions -
Search options for sub-path levels. The container element at index i encodes search options for path level i + 1. The horizon is extended to the deepest sub-path level, as specified by the search options for sub-path levels.
Declaration
Swift
public let subPathSearchOptions: [SubPathSearchOptions] -
Maximum number of paths the client can receive. The default value is 1.
Declaration
Swift
public let numberOfPaths: Int
-
Declaration
Swift
public static func == (lhs: HorizonOptions, rhs: HorizonOptions) -> Bool -
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
An error that occurs during the creation of the instance.
See moreDeclaration
Swift
public enum InitializationError : Error
HorizonOptions Structure Reference