NoWritingToolsSpan


class NoWritingToolsSpan : ParcelableSpan
kotlin.Any
   ↳ android.text.style.NoWritingToolsSpan

A span that signals to IMEs that writing tools should not modify the text.

For example, a text field may contain a mix of user input text and quoted text. The app can apply NoWritingToolsSpan to the quoted text so that the IME knows that writing tools should only rewrite the user input text, and not modify the quoted text.

Summary

Public constructors

Creates a NoWritingToolsSpan.

Public methods
Int

Int

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<NoWritingToolsSpan!>

Public constructors

NoWritingToolsSpan

NoWritingToolsSpan()

Creates a NoWritingToolsSpan.

Public methods

describeContents

fun describeContents(): Int
Return
Int 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

getSpanTypeId

fun getSpanTypeId(): Int

toString

fun toString(): String
Return
String a string representation of the object.

writeToParcel

fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

static val CREATOR: Parcelable.Creator<NoWritingToolsSpan!>