# SimpleCursorAdapter.CursorToStringConverter

# SimpleCursorAdapter.CursorToStringConverter

Artifact:[androidx.cursoradapter:cursoradapter](https://developer.android.com/jetpack/androidx/releases/cursoradapter)  
[View Source](https://cs.android.com/search?q=file:androidx/cursoradapter/widget/SimpleCursorAdapter.java+class:androidx.cursoradapter.widget.SimpleCursorAdapter.CursorToStringConverter)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/cursoradapter#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/cursoradapter/widget/SimpleCursorAdapter.CursorToStringConverter "View this page in Java")

<br />

```
interface SimpleCursorAdapter.CursorToStringConverter
```

<br />

*** ** * ** ***

This class can be used by external clients of SimpleCursorAdapter to define how the Cursor should be converted to a String.  

|                                                               See also                                                                |
|---------------------------------------------------------------------------------------------------------------------------------------|---|
| [convertToString](https://developer.android.com/reference/android/widget/CursorAdapter.html#convertToString(android.database.Cursor)) |   |

## Summary

|                                       ### Public functions                                        |
|---------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!` | [convertToString](https://developer.android.com/reference/kotlin/androidx/cursoradapter/widget/SimpleCursorAdapter.CursorToStringConverter#convertToString(android.database.Cursor))`(cursor: `[Cursor](https://developer.android.com/reference/android/database/Cursor.html)`!)` Returns a CharSequence representing the specified Cursor. |

## Public functions

### convertToString

Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/cursoradapter#1.0.0)  

```
fun convertToString(cursor: Cursor!): CharSequence!
```

Returns a CharSequence representing the specified Cursor.  

|                                         Parameters                                          |
|---------------------------------------------------------------------------------------------|-----------------------------------------------------------------|
| `cursor: `[Cursor](https://developer.android.com/reference/android/database/Cursor.html)`!` | the cursor for which a CharSequence representation is requested |

|                                              Returns                                              |
|---------------------------------------------------------------------------------------------------|-------------------------------------------------|
| [CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`!` | a non-null CharSequence representing the cursor |