Is your feature request related to a problem? Please describe.
When ActualErrorHandler is called, it would be nice to have a UnityEvent or similar to be notified that the capture is canceled.
Describe the solution you'd likeErrorReceived.Invoke(domain, code, message) so I can ErrorReceived.AddListener(HandleErrors) on my end
Describe alternatives you've considered
I currently have to listen for capture stopping unexpectedly via IsCapturing, but that requires some subtlety because we could be off by a frame or two (e.g. _waitForEndOfFrame, onApplicationPause, and others update IsCapturing). This isn't too hard to work around but it is fragile. I just wait for 3 consecutive unexpected capturing states.
Additional context
This is specifically due to Apple Issue Error: domain: 1, code: -11819, message: Cannot Complete Action, which cancels capture.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is your feature request related to a problem? Please describe. When
ActualErrorHandler
is called, it would be nice to have a UnityEvent or similar to be notified that the capture is canceled.Describe the solution you'd like
ErrorReceived.Invoke(domain, code, message)
so I canErrorReceived.AddListener(HandleErrors)
on my endDescribe alternatives you've considered I currently have to listen for capture stopping unexpectedly via
IsCapturing
, but that requires some subtlety because we could be off by a frame or two (e.g._waitForEndOfFrame
,onApplicationPause
, and others updateIsCapturing
). This isn't too hard to work around but it is fragile. I just wait for 3 consecutive unexpected capturing states.Additional context This is specifically due to Apple Issue
Error: domain: 1, code: -11819, message: Cannot Complete Action
, which cancels capture.