# class KTextEditor.CodeCompletionInterface

### abstract class

Table of contents
Modules
ktexteditor Classes
All Classes

Module | ktexteditor
Namespace | ktexteditor
Class | KTextEditor.CodeCompletionInterface
Inherits |

### methods

- abortCompletion ()

  returns nothing
  pure virtual

  Abort the currently displayed code completion without executing any currently selected completion.

- forceCompletion ()

  returns nothing
  pure virtual

  Force execution of the currently selected completion, and hide the code completion box.

- isAutomaticInvocationEnabled ()

  returns (bool)
  pure virtual

  Determine the status of automatic code completion invocation.

- isCompletionActive ()

  returns (bool)
  pure virtual

  Query whether the code completion box is currently displayed.

- registerCompletionModel (model)

  returns nothing
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  model | KTextEditor.CodeCompletionModel |

  Register a new code completion model.

  model - new completion model

  See also unregisterCompletionModel()

- setAutomaticInvocationEnabled (enabled)

  returns nothing
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  enabled | bool | True

  Enable or disable automatic code completion invocation.

- startCompletion (word, model)

  returns nothing
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  word | KTextEditor.Range |
  model | KTextEditor.CodeCompletionModel |

  Invoke code completion over a given range, with a specific model.

- unregisterCompletionModel (model)

  returns nothing
  pure virtual

  Argument | Type | Default
  --- | --- | ---
  model | KTextEditor.CodeCompletionModel |

  Unregister a code completion model.

  model - the model that should be unregistered

  See also registerCompletionModel()