# Prediction

Added in[API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Prediction

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/gesture/Prediction "View this page in Java")  

```
open class Prediction
```

|---|----------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                           ||
| ↳ | [android.gesture.Prediction](https://developer.android.com/reference/kotlin/android/gesture/Prediction#) |

## Summary

|                                                                                          Public methods                                                                                           ||
|--------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/android/gesture/Prediction#toString())`()` <br /> |

|                                                                                            Properties                                                                                            ||
|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [name](https://developer.android.com/reference/kotlin/android/gesture/Prediction#name:kotlin.String) <br />   |
| [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)  | [score](https://developer.android.com/reference/kotlin/android/gesture/Prediction#score:kotlin.Double) <br /> |

## Public methods

### toString

Added in[API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun toString(): String
```

|                                                          Return                                                          ||
|----------------------------------------------------------------------------------|----------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of the object. |

## Properties

### name

Added in[API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
val name: String!
```  

### score

Added in[API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var score: Double
```