Attach a new result by adding it to the attachedResults state.
A result to add to the list of currently attached results.
Detach a result by removing it from the attachedResults state.
A result to remove from the list of currently attached results.
Check if a specific result is attached to this case.
The result to check if attached, with SearchAPI fields such as permanentId or uriHash.
A boolean indicating if the result is attached.
Adds a callback that's invoked on state change.
A callback that's invoked on state change.
A function to remove the listener.
The AttachedResults controller manages all attached results for a given case. It provides a unified API to attach/detach results, check attachment status, and access all attached results for the case.