obsBrowserEvent method

Future<CallVendorRequestResponse> obsBrowserEvent({
  1. required String eventName,
  2. dynamic eventData,
})

Helper method to send a VendorRequest specifically to the 'obs-browser' plugin.

Implementation

Future<CallVendorRequestResponse> obsBrowserEvent(
        {required String eventName, dynamic eventData}) async =>
    await callVendorRequest(
      vendorName: 'obs-browser',
      requestType: 'emit_event',
      requestData: RequestData(eventName: eventName, eventData: eventData),
    );