data class Candidate
A candidate for autocorrection, next word prediction or swipe typing.
Constructors | |
---|---|
Candidate(type: CandidateType, score: Float, replacements: List<Replacement>) |
Properties | |
---|---|
CandidateType | type The type of the candidate. |
Float |
score The accuracy of the candidate. |
List<Replacement> | replacements An array of the text replacements that the candidate consists of. |
Candidate(type: CandidateType, score: Float, replacements: List<Replacement>)
Parameters | |
---|---|
type: CandidateType | The type of the candidate. |
score: Float | The accuracy of the candidate. |
replacements: List<Replacement> | An array of the text replacements that the candidate consists of. |
val type: CandidateType
The type of the candidate.
val score: Float
The accuracy of the candidate.
val replacements: List<Replacement>
An array of the text replacements that the candidate consists of.