Class DeviceMonitor
- Namespace
- Gst
- Assembly
- Gst-1.0.dll
public class DeviceMonitor : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
DeviceMonitor
- Implements
- Inherited Members
Constructors
DeviceMonitor(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public DeviceMonitor(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
DeviceMonitor(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected DeviceMonitor(CreationData data)
Parameters
dataCreationData
DeviceMonitor(DeviceMonitorHandle)
protected DeviceMonitor(DeviceMonitorHandle handle)
Parameters
handleDeviceMonitorHandle
Fields
ShowAllPropertyDefinition
public static readonly Property<bool, DeviceMonitor> ShowAllPropertyDefinition
Field Value
Properties
ShowAll
public bool ShowAll { get; set; }
Property Value
Methods
AddFilter(string?, Caps?)
[Version("1.4")]
public uint AddFilter(string? classes, Caps? caps)
Parameters
Returns
GetBus()
[Version("1.4")]
public Bus GetBus()
Returns
GetDevices()
[Version("1.4")]
public List? GetDevices()
Returns
GetGType()
public static Type GetGType()
Returns
GetProviders()
[Version("1.6")]
public string[] GetProviders()
Returns
- string[]
GetShowAllDevices()
[Version("1.6")]
public bool GetShowAllDevices()
Returns
New()
[Version("1.4")]
public static DeviceMonitor New()
Returns
NewFromPointer(nint, bool)
Creates a new managed DeviceMonitor instance for a given pointer.
public static DeviceMonitor NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new DeviceMonitor and sets the properties specified by the construct arguments.
public static DeviceMonitor NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
RemoveFilter(uint)
[Version("1.4")]
public bool RemoveFilter(uint filterId)
Parameters
filterIduint
Returns
SetShowAllDevices(bool)
[Version("1.6")]
public void SetShowAllDevices(bool showAll)
Parameters
showAllbool
Start()
[Version("1.4")]
public bool Start()
Returns
Stop()
[Version("1.4")]
public void Stop()