Interface IAssistItemConverter
Defines methods that can be used to convert data objects to assist items and vice versa.
Namespace: Syncfusion.Maui.AIAssistView
Assembly: Syncfusion.Maui.AIAssistView.dll
Syntax
public interface IAssistItemConverter
Methods
ConvertToAssistItem(Object, SfAIAssistView)
Converts the given data object to an assist item.
Declaration
IAssistItem ConvertToAssistItem(object data, SfAIAssistView assistView)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | data | The data object to be converted into an assist item. |
| SfAIAssistView | assistView | The instance of SfAIAssistView associated with the conversion. |
Returns
| Type | Description |
|---|---|
| IAssistItem | Returns the converted IAssistItem. |
ConvertToData(Object, SfAIAssistView)
Converts the given assist item to a data object.
Declaration
object ConvertToData(object assistItem, SfAIAssistView assistView)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | assistItem | The IAssistItem to be converted into a data object. |
| SfAIAssistView | assistView | The instance of SfAIAssistView associated with the conversion. |
Returns
| Type | Description |
|---|---|
| System.Object | Returns the converted data object. |