---
title: "init(timeRange:segmentType:marked:requiresLinearPlayback:identifier:)"
framework: AVKit
role: symbol
role_heading: Initializer
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+]
path: "avkit/avplaybackuserinterfacetimelinesegment/init(timerange:segmenttype:marked:requireslinearplayback:identifier:)"
---

# init(timeRange:segmentType:marked:requiresLinearPlayback:identifier:)

Initializes a new timeline segment with the specified characteristics.

## Declaration

```swift
init(timeRange: CMTimeRange, segmentType: AVPlaybackUserInterfaceTimelineSegmentType, marked: Bool, requiresLinearPlayback: Bool, identifier: String?)
```

## Parameters

- `timeRange`: The time range defining the segment’s position and duration within the timeline.
- `segmentType`: The type of content this segment represents.
- `marked`: Whether the segment should be visually highlighted in the timeline UI.
- `requiresLinearPlayback`: Whether the segment must be played sequentially without seeking or skipping.
- `identifier`: External identifier for tracking or analytics purposes.
