Table of Contents

Class UserMediaPermissionRequest

Namespace
WebKit
Assembly
WebKit-6.0.dll
public sealed class UserMediaPermissionRequest : Object, PermissionRequest, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
UserMediaPermissionRequest
Implements
Inherited Members

Constructors

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

Parameters

constructArguments ConstructArgument[]

UserMediaPermissionRequest(CreationData)

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

Parameters

data CreationData

UserMediaPermissionRequest(UserMediaPermissionRequestHandle)

protected UserMediaPermissionRequest(UserMediaPermissionRequestHandle handle)

Parameters

handle UserMediaPermissionRequestHandle

Fields

IsForAudioDevicePropertyDefinition

public static readonly Property<bool, UserMediaPermissionRequest> IsForAudioDevicePropertyDefinition

Field Value

Property<bool, UserMediaPermissionRequest>

IsForVideoDevicePropertyDefinition

public static readonly Property<bool, UserMediaPermissionRequest> IsForVideoDevicePropertyDefinition

Field Value

Property<bool, UserMediaPermissionRequest>

Properties

IsForAudioDevice

public bool IsForAudioDevice { get; }

Property Value

bool

IsForVideoDevice

public bool IsForVideoDevice { get; }

Property Value

bool

Methods

Allow()

public void Allow()

Deny()

public void Deny()

GetGType()

public static Type GetGType()

Returns

Type

NewFromPointer(nint, bool)

Creates a new managed UserMediaPermissionRequest instance for a given pointer.

public static UserMediaPermissionRequest NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

UserMediaPermissionRequest

NewWithProperties(ConstructArgument[])

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

public static UserMediaPermissionRequest NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

UserMediaPermissionRequest