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
constructArgumentsConstructArgument[]
UserMediaPermissionRequest(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected UserMediaPermissionRequest(CreationData data)
Parameters
dataCreationData
UserMediaPermissionRequest(UserMediaPermissionRequestHandle)
protected UserMediaPermissionRequest(UserMediaPermissionRequestHandle handle)
Parameters
Fields
IsForAudioDevicePropertyDefinition
public static readonly Property<bool, UserMediaPermissionRequest> IsForAudioDevicePropertyDefinition
Field Value
IsForVideoDevicePropertyDefinition
public static readonly Property<bool, UserMediaPermissionRequest> IsForVideoDevicePropertyDefinition
Field Value
Properties
IsForAudioDevice
public bool IsForAudioDevice { get; }
Property Value
IsForVideoDevice
public bool IsForVideoDevice { get; }
Property Value
Methods
Allow()
public void Allow()
Deny()
public void Deny()
GetGType()
public static Type GetGType()
Returns
NewFromPointer(nint, bool)
Creates a new managed UserMediaPermissionRequest instance for a given pointer.
public static UserMediaPermissionRequest NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new UserMediaPermissionRequest and sets the properties specified by the construct arguments.
public static UserMediaPermissionRequest NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.