Interface
ISmartPasteButtonProvider

Defines the contract for a container (such as a form or data grid) that participates in AI-powered smart paste operations initiated by RadSmartPasteButton. Implementors supply metadata about their editable fields and accept values extracted from clipboard content.

Definition

Namespace:Telerik.Maui.Controls.SmartPasteButton

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public interface ISmartPasteButtonProvider

Derived Classes: RadDataForm

Methods

GetFields()

Returns the collection of SmartPasteButtonField instances that describe the editable fields available for smart paste. Each field carries the metadata the AI service needs to extract and deserialize the correct value from the clipboard.

Declaration

cs-api-definition
IEnumerable<SmartPasteButtonField> GetFields()

Returns

IEnumerable<SmartPasteButtonField>

An enumerable of SmartPasteButtonField objects representing the provider's fields.

SetFieldValue(string, object)

Assigns an extracted value to the field identified by field. Called by RadSmartPasteButton after the AI service has processed the clipboard content and produced a typed result for each field.

Declaration

cs-api-definition
void SetFieldValue(string field, object value)

Parameters

field

string

The unique field identifier that matches Field.

value

object

The deserialized value to assign to the field.