Stay organized with collections
Save and categorize content based on your preferences.
open class ExtractedTextRequest : Parcelable
Description of what an input method would like from an application when extract text from its input editor.
Summary
Inherited constants |
From class Parcelable
Int |
CONTENTS_FILE_DESCRIPTOR
Descriptor bit used with describeContents() : indicates that the Parcelable object's flattened representation includes a file descriptor.
|
Int |
PARCELABLE_WRITE_RETURN_VALUE
Flag for use with writeToParcel : the object being written is a return value, that is the result of a function such as "Parcelable someFunction() ", "void someFunction(out Parcelable) ", or "void someFunction(inout Parcelable) ". Some implementations may want to release resources at this point.
|
|
Public methods |
open Int |
|
open Unit |
Used to package this object into a Parcel .
|
Properties |
static Parcelable.Creator<ExtractedTextRequest!> |
Used to make this class parcelable.
|
Int |
Additional request flags, having the same possible values as the flags parameter of InputConnection.getTextBeforeCursor() .
|
Int |
Hint for the maximum number of characters to return.
|
Int |
Hint for the maximum number of lines to return.
|
Int |
Arbitrary integer that can be supplied in the request, which will be delivered back when reporting updates.
|
Public constructors
Public methods
describeContents
open fun describeContents(): Int
writeToParcel
open fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Used to package this object into a Parcel
.
Parameters |
dest |
Parcel: The Parcel to be written. |
flags |
Int: The flags used for parceling. |
Properties
hintMaxChars
var hintMaxChars: Int
Hint for the maximum number of characters to return.
hintMaxLines
var hintMaxLines: Int
Hint for the maximum number of lines to return.
token
var token: Int
Arbitrary integer that can be supplied in the request, which will be delivered back when reporting updates.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ExtractedTextRequest\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nExtractedTextRequest\n====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/inputmethod/ExtractedTextRequest \"View this page in Java\") \n\n```\nopen class ExtractedTextRequest : Parcelable\n```\n\n|---|----------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.view.inputmethod.ExtractedTextRequest](#) |\n\nDescription of what an input method would like from an application when extract text from its input editor.\n\nSummary\n-------\n\n| Inherited constants ||\n|---|---|\n| From class [Parcelable](../../os/Parcelable.html#) |----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CONTENTS_FILE_DESCRIPTOR](../../os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int) Descriptor bit used with [describeContents()](../../os/Parcelable.html#describeContents()): indicates that the Parcelable object's flattened representation includes a file descriptor. \u003cbr /\u003e | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PARCELABLE_WRITE_RETURN_VALUE](../../os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE:kotlin.Int) Flag for use with [writeToParcel](../../os/Parcelable.html#writeToParcel(android.os.Parcel,%20kotlin.Int)): the object being written is a return value, that is the result of a function such as \"`Parcelable someFunction()`\", \"`void someFunction(out Parcelable)`\", or \"`void someFunction(inout Parcelable)`\". Some implementations may want to release resources at this point. \u003cbr /\u003e | ||\n\n| Public constructors ||\n|------------------------------------------------------------|---|\n| [ExtractedTextRequest](#ExtractedTextRequest())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [describeContents](#describeContents())`()` \u003cbr /\u003e |\n| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [writeToParcel](#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](../../os/Parcel.html#)`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Used to package this object into a [Parcel](../../os/Parcel.html#). |\n\n| Properties ||\n|----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [Parcelable.Creator](../../os/Parcelable.Creator.html#)\\\u003c[ExtractedTextRequest](#)!\\\u003e | [CREATOR](#CREATOR:android.os.Parcelable.Creator) Used to make this class parcelable. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [flags](#flags:kotlin.Int) Additional request flags, having the same possible values as the flags parameter of [InputConnection.getTextBeforeCursor()](/reference/kotlin/android/view/inputmethod/InputConnection#getTextBeforeCursor(kotlin.Int,%20kotlin.Int)). |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hintMaxChars](#hintMaxChars:kotlin.Int) Hint for the maximum number of characters to return. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hintMaxLines](#hintMaxLines:kotlin.Int) Hint for the maximum number of lines to return. |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [token](#token:kotlin.Int) Arbitrary integer that can be supplied in the request, which will be delivered back when reporting updates. |\n\nPublic constructors\n-------------------\n\n### ExtractedTextRequest\n\n```\nExtractedTextRequest()\n```\n\nPublic methods\n--------------\n\n### describeContents\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun describeContents(): Int\n```\n\n| Return ||\n|----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or [android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR](../../os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR:kotlin.Int) |\n\n### writeToParcel\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun writeToParcel(\n dest: Parcel, \n flags: Int\n): Unit\n```\n\nUsed to package this object into a [Parcel](../../os/Parcel.html#).\n\n| Parameters ||\n|---------|-----------------------------------------------------------------------------------------------------------|\n| `dest` | [Parcel](../../os/Parcel.html#): The [Parcel](../../os/Parcel.html#) to be written. |\n| `flags` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The flags used for parceling. |\n\nProperties\n----------\n\n### CREATOR\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CREATOR: Parcelable.Creator\u003cExtractedTextRequest!\u003e\n```\n\nUsed to make this class parcelable. \n\n### flags\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar flags: Int\n```\n\nAdditional request flags, having the same possible values as the flags parameter of [InputConnection.getTextBeforeCursor()](/reference/kotlin/android/view/inputmethod/InputConnection#getTextBeforeCursor(kotlin.Int,%20kotlin.Int)). \n\n### hintMaxChars\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar hintMaxChars: Int\n```\n\nHint for the maximum number of characters to return. \n\n### hintMaxLines\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar hintMaxLines: Int\n```\n\nHint for the maximum number of lines to return. \n\n### token\n\nAdded in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nvar token: Int\n```\n\nArbitrary integer that can be supplied in the request, which will be delivered back when reporting updates."]]