Table of Contents

Class Device

Namespace
Gst
Assembly
Gst-1.0.dll
public class Device : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
Device
Implements
Inherited Members

Constructors

Device(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 Device(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Device(CreationData)

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

Parameters

data CreationData

Device(DeviceHandle)

protected Device(DeviceHandle handle)

Parameters

handle DeviceHandle

Fields

CapsPropertyDefinition

public static readonly Property<Caps, Device> CapsPropertyDefinition

Field Value

Property<Caps, Device>

DeviceClassPropertyDefinition

public static readonly Property<string?, Device> DeviceClassPropertyDefinition

Field Value

Property<string, Device>

DisplayNamePropertyDefinition

public static readonly Property<string?, Device> DisplayNamePropertyDefinition

Field Value

Property<string, Device>

PropertiesPropertyDefinition

public static readonly Property<Structure, Device> PropertiesPropertyDefinition

Field Value

Property<Structure, Device>

RemovedSignal

Signal Descriptor for OnRemoved.

public static readonly Signal<Device> RemovedSignal

Field Value

Signal<Device>

Properties

Caps

public Caps Caps { get; }

Property Value

Caps

DeviceClass

public string? DeviceClass { get; }

Property Value

string

DisplayName

public string? DisplayName { get; }

Property Value

string

Properties

public Structure Properties { get; }

Property Value

Structure

Methods

CreateElement(string?)

[Version("1.4")]
public Element? CreateElement(string? name)

Parameters

name string

Returns

Element

GetCaps()

[Version("1.4")]
public Caps? GetCaps()

Returns

Caps

GetDeviceClass()

[Version("1.4")]
public string GetDeviceClass()

Returns

string

GetDisplayName()

[Version("1.4")]
public string GetDisplayName()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetProperties()

[Version("1.6")]
public Structure? GetProperties()

Returns

Structure

HasClasses(string)

[Version("1.4")]
public bool HasClasses(string classes)

Parameters

classes string

Returns

bool

HasClassesv(string[])

[Version("1.4")]
public bool HasClassesv(string[] classes)

Parameters

classes string[]

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed Device instance for a given pointer.

public static Device NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Device

NewWithProperties(ConstructArgument[])

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

public static Device NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Device

ReconfigureElement(Element)

[Version("1.4")]
public bool ReconfigureElement(Element element)

Parameters

element Element

Returns

bool

Events

OnRemoved

public event SignalHandler<Device> OnRemoved

Event Type

SignalHandler<Device>