Instance Method

userInteractionNoLongerPermitted(forError:)

Sent when it is no longer safe to proceed without immediately handling the error.

Declaration

func userInteractionNoLongerPermitted(forError error: Error)

Parameters

error

An error object encapsulating information about the error.

Discussion

UIKit calls this method when it is no longer safe to proceed without immediately handling the error, such as when the application is being suspended. Subclasses that override this method must immediately end error handling (including dismissing any interactive user interface) and call finishedHandlingError(_:recovered:) before returning. It is only necessary to override this method if you override handleError(_:userInteractionPermitted:) without invoking the superclass implementation (super).