SegmentReferenceConverter Class Reference
- Last UpdatedJun 10, 2025
- 1 minute read
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
InstantiationError
Indicates what went wrong when the instantiation was attempted.Declaration
Swift
public init(sdkEngine: SDKNativeEngine) throws
Parameters
sdkEngine
A SDKEngine instance.
-
The
DirectedOCMSegmentId
for providedSegmentReference
.Declaration
Swift
public func getOCMSegmentId(segmentReference: SegmentReference) -> DirectedOCMSegmentId?
Parameters
segmentReference
SegmentReference
to convert.Return Value
DirectedOCMSegmentId
corresponding to providedSegmentReference
.