Contents

removeDictationResultPlaceholder(_:willInsertResult:)

Tells the view that the specified placeholder object is unnecessary.

Declaration

optional func removeDictationResultPlaceholder(_ placeholder: Any, willInsertResult: Bool)

Parameters

  • placeholder:

    The placeholder object that is no longer needed.

  • willInsertResult:

    The value of this parameter is True if the dictation value was generated successfully or False if an error occurred.

Discussion

If the value in the willInsertResult parameter is false, the placeholder animation is not replaced by an actual dictation result. When this happens, the system still removes the placeholder animation and removes the strong reference to your placeholder object.

See Also

Using dictation