Stay organized with collections
Save and categorize content based on your preferences.
SimpleCursorAdapter.CursorToStringConverter
public
static
interface
SimpleCursorAdapter.CursorToStringConverter
android.widget.SimpleCursorAdapter.CursorToStringConverter
|
This class can be used by external clients of SimpleCursorAdapter
to define how the Cursor should be converted to a String.
Summary
Public methods
convertToString
public abstract CharSequence convertToString (Cursor cursor)
Returns a CharSequence representing the specified Cursor.
Parameters |
cursor |
Cursor : the cursor for which a CharSequence representation
is requested |
Returns |
CharSequence |
a non-null CharSequence representing the cursor |
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# SimpleCursorAdapter.CursorToStringConverter\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nSimpleCursorAdapter.CursorToStringConverter\n===========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/widget/SimpleCursorAdapter.CursorToStringConverter \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nSimpleCursorAdapter.CursorToStringConverter\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------------------|\n| android.widget.SimpleCursorAdapter.CursorToStringConverter |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThis class can be used by external clients of SimpleCursorAdapter\nto define how the Cursor should be converted to a String. \n**See also:**\n\n- [CursorAdapter.convertToString(android.database.Cursor)](/reference/android/widget/CursorAdapter#convertToString(android.database.Cursor))\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[CharSequence](/reference/java/lang/CharSequence) | ` `[convertToString](/reference/android/widget/SimpleCursorAdapter.CursorToStringConverter#convertToString(android.database.Cursor))`(`[Cursor](/reference/android/database/Cursor)` cursor) ` Returns a CharSequence representing the specified Cursor. |\n\nPublic methods\n--------------\n\n### convertToString\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract CharSequence convertToString (Cursor cursor)\n```\n\nReturns a CharSequence representing the specified Cursor.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------------|\n| `cursor` | `Cursor`: the cursor for which a CharSequence representation is requested \u003cbr /\u003e |\n\n| Returns ||\n|---------------------------------------------------|--------------------------------------------------------|\n| [CharSequence](/reference/java/lang/CharSequence) | a non-null CharSequence representing the cursor \u003cbr /\u003e |"]]