Share via


ITransformationMethod.GetTransformationFormatted(ICharSequence, View) Method

Definition

Returns a CharSequence that is a transformation of the source text -- for example, replacing each character with a dot in a password field.

[Android.Runtime.Register("getTransformation", "(Ljava/lang/CharSequence;Landroid/view/View;)Ljava/lang/CharSequence;", "GetGetTransformation_Ljava_lang_CharSequence_Landroid_view_View_Handler:Android.Text.Method.ITransformationMethodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.ICharSequence? GetTransformationFormatted (Java.Lang.ICharSequence? source, Android.Views.View? view);
[<Android.Runtime.Register("getTransformation", "(Ljava/lang/CharSequence;Landroid/view/View;)Ljava/lang/CharSequence;", "GetGetTransformation_Ljava_lang_CharSequence_Landroid_view_View_Handler:Android.Text.Method.ITransformationMethodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetTransformationFormatted : Java.Lang.ICharSequence * Android.Views.View -> Java.Lang.ICharSequence

Parameters

source
ICharSequence
view
View

Returns

Attributes

Remarks

Returns a CharSequence that is a transformation of the source text -- for example, replacing each character with a dot in a password field. Beware that the returned text must be exactly the same length as the source text, and that if the source text is Editable, the returned text must mirror it dynamically instead of doing a one-time copy. The method should not return null unless source is null.

Java documentation for android.text.method.TransformationMethod.getTransformation(java.lang.CharSequence, android.view.View).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to