Skip to main content

LiveDevicePicker

Function LiveDevicePicker 

Source
fn LiveDevicePicker(props: LiveDevicePickerProps) -> impl IntoView
Expand description

Live, click-wired device-picker (camera + mic). Each row is a real <button> that fires on_select(id) when clicked.

ยงRequired Props

  • kind: CaptureSourceKind
  • state: [Signal<DevicePickerState>]
  • devices: [Signal<Vec<DeviceOptionView>>]
  • on_select: [Callback<String>]
  • on_grant_permission: [Callback<()>]