pub trait UserMediaPermissionRequestExt: 'static {
fn is_for_audio_device(&self) -> bool;
fn is_for_video_device(&self) -> bool;
fn connect_is_for_audio_device_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_is_for_video_device_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Available on crate feature
v2_8
only.Expand description
Required Methods
sourcefn is_for_audio_device(&self) -> bool
fn is_for_audio_device(&self) -> bool
Whether the media device to which the permission was requested has a microphone or not.
sourcefn is_for_video_device(&self) -> bool
fn is_for_video_device(&self) -> bool
Whether the media device to which the permission was requested has a video capture capability or not.