# 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)

*** ** * ** ***


```
public 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 |
|---|---|
| `https://developer.android.com/reference/android/widget/CursorAdapter.html#convertToString(android.database.Cursor)` |   |

## Summary

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/cursoradapter/widget/SimpleCursorAdapter.CursorToStringConverter#convertToString(android.database.Cursor)(https://developer.android.com/reference/android/database/Cursor.html cursor)` Returns a CharSequence representing the specified Cursor. |

## Public methods

### convertToString

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

```
abstract CharSequence convertToString(Cursor cursor)
```

Returns a CharSequence representing the specified Cursor.

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

| Returns |
|---|---|
| `https://developer.android.com/reference/java/lang/CharSequence.html` | a non-null CharSequence representing the cursor |