Skip to content

Notification when error handling #281

@artoonie

Description

@artoonie

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 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions