Documentation Language: Swift

Method

setProtectedAreaContent(_:content:markers:)

Sets the preserved content for a protected area.

@MainActor func setProtectedAreaContent(_ id: String, content: String, markers: (String, String)? = nil) async

Parameters

id

The protected area identifier

content

The content to preserve

markers

Optional tuple of (startMarker, endMarker)

Discussion

This is typically called during initialization to restore previously generated protected area content before regeneration.