Documentation Language: Swift

Method

getProtectedAreaContent(_:)

Retrieves the preserved content for a protected area.

@MainActor func getProtectedAreaContent(_ id: String) async -> String?

Parameters

id

The protected area identifier

Return Value

The preserved content, or nil if no content exists

Discussion

Protected areas allow user code to be preserved across regeneration. If the protected area has preserved content from a previous generation, this method returns it.