ElectronicHorizonDataLoaderResult
public struct ElectronicHorizonDataLoaderResult
Represents the result of a data loading operation performed by ElectronicHorizonDataLoader.
The result contains either the loaded segment data or an error code.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
The error code if the data could not be loaded, otherwise
nil.Declaration
Swift
public var errorCode: ElectronicHorizonDataLoaderErrorCode? -
The loaded segment data if it is available, otherwise
nil.Declaration
Swift
public var segmentData: SegmentData? -
Creates a new instance.
Offline availability: This property is available online and offline.
Declaration
Swift
public init(errorCode: ElectronicHorizonDataLoaderErrorCode? = nil, segmentData: SegmentData? = nil)