---
title: "initWithTimeRange:auxiliaryContent:marked:requiresLinearPlayback:identifier:"
framework: AVKit
role: symbol
role_heading: Instance Method
path: "avkit/avinterfacetimelinesegment/initwithtimerange:auxiliarycontent:marked:requireslinearplayback:identifier:"
---

# initWithTimeRange:auxiliaryContent:marked:requiresLinearPlayback:identifier:

Initializes a new timeline segment with the specified characteristics.

## Declaration

```occ
- (instancetype) initWithTimeRange:(CMTimeRange) timeRange auxiliaryContent:(BOOL) auxiliaryContent marked:(BOOL) marked requiresLinearPlayback:(BOOL) requiresLinearPlayback identifier:(NSString *) identifier;
```

## Parameters

- `timeRange`: The time range defining the segment’s position and duration within the timeline.
- `auxiliaryContent`: Whether the segment contains main or auxiliary content.
- `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.
