uninstall

fun uninstall()

Stops this capture: unregisters its lifecycle callbacks and switches off every callback wrapper it installed. Safe to call more than once.

The wrappers themselves stay in the windows' callback chains as pure pass-throughs. Removing them would mean restoring the callback each one captured, and if another SDK wrapped ours after we installed it, that restore would silently uninstall them. An inert delegating wrapper costs one virtual call per event; unwrapping someone else's instrumentation costs them their data.