How can I help you?
Events in .NET MAUI AI-Powered Scheduler (SfSmartScheduler)
The SfSmartScheduler supports the AssistAppointmentResponseCompleted event to interact with .NET MAUI smart Scheduler.
AssistAppointmentResponseCompleted Event
The SfSmartScheduler control provides the AssistAppointmentResponseCompleted to respond an appointment is created or modified through AI assistance. The appointment, assistant response, handled and action are passed through the AssistAppointmentResponseCompletedEventArgs. This argument provides the following details:
- Appointment : The appointment details.
- Handled : The value indicates whether the event is handled or not.
- AssistantResponse : The appointment response.
- Action : The action indicates whether the appointment is added, edited or deleted.
The following example demonstrates how to handle the AssistAppointmentResponseCompleted event.
<smartScheduler:SfSmartScheduler x:Name="smartScheduler"
AssistAppointmentResponseCompleted="OnAssistAppointmentResponseCompleted"/>
private void OnAssistAppointmentResponseCompleted(object sender, AssistAppointmentResponseCompletedEventArgs e)
{
SchedulerAppointment? appointment = e.Appointment;
string response = e.AssistantResponse;
if (e.Action == AppointmentAction.Add)
{
e.Handled = true;
}
}