Stay organized with collections
Save and categorize content based on your preferences.
CursorToStringConverter
interface 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 |
abstract CharSequence! |
Returns a CharSequence representing the specified Cursor.
|
Public methods
convertToString
abstract fun convertToString(cursor: Cursor!): CharSequence!
Returns a CharSequence representing the specified Cursor.
Parameters |
cursor |
Cursor!: the cursor for which a CharSequence representation is requested |
Return |
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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCursorToStringConverter\n=======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/widget/SimpleCursorAdapter.CursorToStringConverter \"View this page in Java\") \n\n```\ninterface CursorToStringConverter\n```\n\n|-----------------------------------------------------------------|\n| [android.widget.SimpleCursorAdapter.CursorToStringConverter](#) |\n\nThis class can be used by external clients of SimpleCursorAdapter to define how the Cursor should be converted to a String.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)! | [convertToString](#convertToString(android.database.Cursor))`(`cursor:` `[Cursor](../database/Cursor.html#)!`)` Returns a CharSequence representing the specified Cursor. |\n\nPublic methods\n--------------\n\n### convertToString\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun convertToString(cursor: Cursor!): CharSequence!\n```\n\nReturns a CharSequence representing the specified Cursor.\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------|\n| `cursor` | [Cursor](../database/Cursor.html#)!: the cursor for which a CharSequence representation is requested |\n\n| Return ||\n|------------------------------------------------------------------------------------------------|-------------------------------------------------|\n| [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)! | a non-null CharSequence representing the cursor |"]]