[−][src]Trait gstreamer_base::prelude::DeviceMonitorExt
Required methods
fn get_bus(&self) -> Bus
fn get_devices(&self) -> Vec<Device>
Gets a list of devices from all of the relevant monitors. This may actually probe the hardware if the monitor is not currently started.
Returns
a glib::List
of
Device
fn get_providers(&self) -> Vec<GString>
Get a list of the currently selected device provider factories.
This
Returns
A list of device provider factory names that are currently being
monitored by self
or None
when nothing is being monitored.
fn get_show_all_devices(&self) -> bool
Get if self
is curretly showing all devices, even those from hidden
providers.
Returns
true
when all devices will be shown.
fn set_show_all_devices(&self, show_all: bool)
Set if all devices should be visible, even those devices from hidden
providers. Setting show_all
to true might show some devices multiple times.
show_all
show all devices
fn start(&self) -> Result<(), BoolError>
Starts monitoring the devices, one this has succeeded, the
MessageType::DeviceAdded
and MessageType::DeviceRemoved
messages
will be emitted on the bus when the list of devices changes.
Returns
true
if the device monitoring could be started
fn stop(&self)
Stops monitoring the devices.
fn get_property_show_all(&self) -> bool
fn set_property_show_all(&self, show_all: bool)
fn connect_property_show_all_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&Self),
F: 'static + Send + Sync + Fn(&Self),
Implementors
impl<O> DeviceMonitorExt for O where
O: IsA<DeviceMonitor>,
[src]
O: IsA<DeviceMonitor>,
fn get_bus(&self) -> Bus
[src]
fn get_devices(&self) -> Vec<Device>
[src]
fn get_providers(&self) -> Vec<GString>
[src]
fn get_show_all_devices(&self) -> bool
[src]
fn set_show_all_devices(&self, show_all: bool)
[src]
fn start(&self) -> Result<(), BoolError>
[src]
fn stop(&self)
[src]
fn get_property_show_all(&self) -> bool
[src]
fn set_property_show_all(&self, show_all: bool)
[src]
fn connect_property_show_all_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Send + Sync + Fn(&O),
[src]
F: 'static + Send + Sync + Fn(&O),