Table of Contents

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

constructArguments ConstructArgument[]

DeviceMonitor(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected DeviceMonitor(CreationData data)

Parameters

data CreationData

DeviceMonitor(DeviceMonitorHandle)

protected DeviceMonitor(DeviceMonitorHandle handle)

Parameters

handle DeviceMonitorHandle

Fields

ShowAllPropertyDefinition

public static readonly Property<bool, DeviceMonitor> ShowAllPropertyDefinition

Field Value

Property<bool, DeviceMonitor>

Properties

ShowAll

public bool ShowAll { get; set; }

Property Value

bool

Methods

AddFilter(string?, Caps?)

[Version("1.4")]
public uint AddFilter(string? classes, Caps? caps)

Parameters

classes string
caps Caps

Returns

uint

GetBus()

[Version("1.4")]
public Bus GetBus()

Returns

Bus

GetDevices()

[Version("1.4")]
public List? GetDevices()

Returns

List

GetGType()

public static Type GetGType()

Returns

Type

GetProviders()

[Version("1.6")]
public string[] GetProviders()

Returns

string[]

GetShowAllDevices()

[Version("1.6")]
public bool GetShowAllDevices()

Returns

bool

New()

[Version("1.4")]
public static DeviceMonitor New()

Returns

DeviceMonitor

NewFromPointer(nint, bool)

Creates a new managed DeviceMonitor instance for a given pointer.

public static DeviceMonitor NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

DeviceMonitor

NewWithProperties(ConstructArgument[])

Creates a new DeviceMonitor and sets the properties specified by the construct arguments.

public static DeviceMonitor NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

DeviceMonitor

RemoveFilter(uint)

[Version("1.4")]
public bool RemoveFilter(uint filterId)

Parameters

filterId uint

Returns

bool

SetShowAllDevices(bool)

[Version("1.6")]
public void SetShowAllDevices(bool showAll)

Parameters

showAll bool

Start()

[Version("1.4")]
public bool Start()

Returns

bool

Stop()

[Version("1.4")]
public void Stop()