# SimpleCursorAdapter.CursorToStringConverter

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# SimpleCursorAdapter.CursorToStringConverter

*** ** * ** ***

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

`
public
static


interface
SimpleCursorAdapter.CursorToStringConverter
`  
`


`

|------------------------------------------------------------|
| android.widget.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:**

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

## Summary

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

## Public methods

### convertToString

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

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

Returns a CharSequence representing the specified Cursor.

<br />

|                                         Parameters                                         ||
|----------|----------------------------------------------------------------------------------|
| `cursor` | `Cursor`: the cursor for which a CharSequence representation is requested <br /> |

|                                                                Returns                                                                 ||
|--------------------------------------------------------------------------------|--------------------------------------------------------|
| [CharSequence](https://developer.android.com/reference/java/lang/CharSequence) | a non-null CharSequence representing the cursor <br /> |