Contents

invalidate()

Invalidate the current translation session and re-run it with new content.

Declaration

mutating func invalidate()

Discussion

Call this method when you want to translate new content using the same source and target languages. When you do, it causes the translationTask(_:action:) function to call its action closure and translate the content again.