Instance Method

removeUIInterruptionMonitor(_:)

Removes a handler using the token provided when it was added.

Declaration

func removeUIInterruptionMonitor(_ monitor: NSObjectProtocol)

Parameters

monitor

An identifier token for an interruption monitor, obtained from a previous call to addUIInterruptionMonitor(withDescription:handler:).

See Also

Monitoring UI Interruptions

Handling UI Interruptions

Improve your UI test’s stability by handling interface changes that block the UI elements under test.