Google is committed to advancing racial equity for Black communities. See how.
Added in API level 1

Factory

open class Factory
kotlin.Any
   ↳ android.text.Editable.Factory

Factory used by TextView to create new Editable. You can subclass it to provide something other than SpannableStringBuilder.

Summary

Public constructors

Public methods
open static Editable.Factory!

Returns the standard Editable Factory.

open Editable!

Returns a new SpannedStringBuilder from the specified CharSequence.

Public constructors

<init>

Factory()

Public methods

getInstance

Added in API level 1
open static fun getInstance(): Editable.Factory!

Returns the standard Editable Factory.

newEditable

Added in API level 1
open fun newEditable(source: CharSequence!): Editable!

Returns a new SpannedStringBuilder from the specified CharSequence. You can override this to provide a different kind of Spanned.