Filter.ConvertResultToStringFormatted(Object) Method

Definition

Converts a value from the filtered set into a CharSequence.

[Android.Runtime.Register("convertResultToString", "(Ljava/lang/Object;)Ljava/lang/CharSequence;", "GetConvertResultToString_Ljava_lang_Object_Handler")]
public virtual Java.Lang.ICharSequence? ConvertResultToStringFormatted (Java.Lang.Object? resultValue);
[<Android.Runtime.Register("convertResultToString", "(Ljava/lang/Object;)Ljava/lang/CharSequence;", "GetConvertResultToString_Ljava_lang_Object_Handler")>]
abstract member ConvertResultToStringFormatted : Java.Lang.Object -> Java.Lang.ICharSequence
override this.ConvertResultToStringFormatted : Java.Lang.Object -> Java.Lang.ICharSequence

Parameters

resultValue
Object

the value to convert to a CharSequence

Returns

a CharSequence representing the value

Attributes

Remarks

Converts a value from the filtered set into a CharSequence. Subclasses should override this method to convert their results. The default implementation returns an empty String for null values or the default String representation of the value.

Java documentation for android.widget.Filter.convertResultToString(java.lang.Object).

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