class Request : Parcelable
A request object for detecting the language of a piece of text.
Summary
| Nested classes | |
|---|---|
|
A builder for building TextLanguage requests. |
|
| Inherited constants | |||||
|---|---|---|---|---|---|
|
From class
|
|||||
| Public methods | |
|---|---|
| Int |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| String? |
Returns the name of the package that sent this request. |
| Bundle |
Returns a bundle containing non-structured extra information about this request. |
| CharSequence |
Returns the text to process. |
| Unit |
Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<TextLanguage.Request!> | |
Public methods
describeContents
fun describeContents(): Int
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or
|
getCallingPackageName
fun getCallingPackageName(): String?
Returns the name of the package that sent this request. This returns null if no calling package name is set.
fun getExtras(): Bundle
Returns a bundle containing non-structured extra information about this request.
NOTE: Do not modify this bundle.
| Return | |
|---|---|
Bundle |
This value cannot be null. |