handleChangesEvent method

void handleChangesEvent(
  1. IUIAutomationElement? sender,
  2. Pointer<UiaChangeInfo> uiaChanges,
  3. int changesCount
)

Handles one or more Microsoft UI Automation change events.

Throws a WindowsException on failure.

To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationchangeseventhandler-handlechangesevent.

Implementation

@pragma('vm:prefer-inline')
void handleChangesEvent(
  IUIAutomationElement? sender,
  Pointer<UiaChangeInfo> uiaChanges,
  int changesCount,
) {
  final hr$ = HRESULT(
    _HandleChangesEventFn(
      ptr,
      sender?.ptr ?? nullptr,
      uiaChanges,
      changesCount,
    ),
  );
  if (hr$.isError) throw WindowsException(hr$);
}