SegmentReferenceConverter
public class SegmentReferenceConverter
extension SegmentReferenceConverter: NativeBase
extension SegmentReferenceConverter: Hashable
A SegmentReferenceConverter provides possibility to convert mapmatched instances of
SegmentReference to corresponding instances of DirectedOCMSegmentId.
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.
-
Creates a new instance of this class.
Throws
InstantiationErrorIndicates what went wrong when the instantiation was attempted.Declaration
Swift
public init(sdkEngine: SDKNativeEngine) throwsParameters
sdkEngineA SDKEngine instance.
-
The
DirectedOCMSegmentIdfor providedSegmentReference.Declaration
Swift
public func getOCMSegmentId(segmentReference: SegmentReference) -> DirectedOCMSegmentId?Parameters
segmentReferenceSegmentReferenceto convert.Return Value
DirectedOCMSegmentIdcorresponding to providedSegmentReference.