Class Biometry.LanguageScore

ru.yandex.speechkit

java.lang.Object ⇽ Biometry.LanguageScore

public  class  Biometry.LanguageScore  implements android.os.Parcelable

All Implemented Interfaces:
android.os.Parcelable
Enclosing Class:
Biometry

Contains the language code and a score of what the user said in that language.

To get an array of LanguageScore objects, use the getLanguageScores() method.

Methods

LanguageScore(@NonNull String language, float score)

Creates an object of the LanguageScore class.

LanguageScore(android.os.Parcel parcel)

Creates an object of the LanguageScore class.

int describeContents()
String getLanguage()

Returns the language code.

float getScore()

Returns a score of what the user said in the specified language.

String toString()
void writeToParcel(android.os.Parcel parcel, int i)

Fields

final Creator CREATOR

Method Detail

LanguageScore

public LanguageScore (@NonNull String language, float score)

Creates an object of the LanguageScore class.

Parameters:
language

Language code.

score

A score of what the user said in the specified language.

LanguageScore

public LanguageScore (android.os.Parcel parcel)

Creates an object of the LanguageScore class.

Parameters:
parcel

A service object for state serialization.

describeContents

public int describeContents ()

getLanguage

public String getLanguage ()

Returns the language code.

Returns:

Language code.

getScore

public float getScore ()

Returns a score of what the user said in the specified language.

Returns:

A score of what the user said in the specified language.

toString

public String toString ()

writeToParcel

public void writeToParcel (android.os.Parcel parcel, int i)