peekContent
Returns the content without marking it as handled.
This is useful for debugging, logging, or cases where you need to inspect the event content without consuming it. Use sparingly in production code.
Usage Example
val event = OneTimeEvent("Error occurred")
val peeked = event.peekContent() // Returns "Error occurred"
val content = event.getContentIfNotHandled() // Still returns "Error occurred"Content copied to clipboard
Return
The event content, regardless of whether it has been handled.