pub struct VirtualElementCallWidgetConfig {
pub intent: Option<Intent>,
pub skip_lobby: Option<bool>,
pub header: Option<HeaderStyle>,
pub hide_header: Option<bool>,
pub preload: Option<bool>,
pub app_prompt: Option<bool>,
pub confine_to_room: Option<bool>,
pub hide_screensharing: Option<bool>,
pub controlled_audio_devices: Option<bool>,
pub send_notification_type: Option<NotificationType>,
}
experimental-widgets
only.Expand description
Configuration parameters, to create a new virtual Element Call widget.
If intent
is provided the appropriate default values for all other
parameters will be used by element call.
In most cases its enough to only set the intent. Use the other properties
only if you want to deviate from the intent
defaults.
Set docs/url-params.md
to find out more about the parameters and their defaults.
Fields§
§intent: Option<Intent>
The intent of showing the call. If the user wants to start a call or join an existing one. Controls if the lobby is skipped or not.
skip_lobby: Option<bool>
Skip the lobby when joining a call.
header: Option<HeaderStyle>
Whether the branding header of Element call should be shown or if a mobile header navbar should be render.
Default: [HeaderStyle::Standard
]
hide_header: Option<bool>
header
insteadWhether the branding header of Element call should be hidden.
Default: true
preload: Option<bool>
If set, the lobby will be skipped and the widget will join the
call on the io.element.join
action.
Default: false
app_prompt: Option<bool>
Whether element call should prompt the user to open in the browser or the app.
Default: false
confine_to_room: Option<bool>
Make it not possible to get to the calls list in the webview.
Default: true
hide_screensharing: Option<bool>
Do not show the screenshare button.
controlled_audio_devices: Option<bool>
Make the audio devices be controlled by the os instead of the element-call webview.
send_notification_type: Option<NotificationType>
Whether and what type of notification Element Call should send, when starting a call.
Trait Implementations§
Source§impl Clone for VirtualElementCallWidgetConfig
impl Clone for VirtualElementCallWidgetConfig
Source§fn clone(&self) -> VirtualElementCallWidgetConfig
fn clone(&self) -> VirtualElementCallWidgetConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<UT> ConvertError<UT> for VirtualElementCallWidgetConfig
impl<UT> ConvertError<UT> for VirtualElementCallWidgetConfig
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Default for VirtualElementCallWidgetConfig
impl Default for VirtualElementCallWidgetConfig
Source§fn default() -> VirtualElementCallWidgetConfig
fn default() -> VirtualElementCallWidgetConfig
Source§impl<UT> FfiConverter<UT> for VirtualElementCallWidgetConfig
impl<UT> FfiConverter<UT> for VirtualElementCallWidgetConfig
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl<UT> Lift<UT> for VirtualElementCallWidgetConfig
impl<UT> Lift<UT> for VirtualElementCallWidgetConfig
Source§impl<UT> LiftRef<UT> for VirtualElementCallWidgetConfig
impl<UT> LiftRef<UT> for VirtualElementCallWidgetConfig
Source§impl<UT> LiftReturn<UT> for VirtualElementCallWidgetConfig
impl<UT> LiftReturn<UT> for VirtualElementCallWidgetConfig
Source§type ReturnType = <VirtualElementCallWidgetConfig as Lift<UT>>::FfiType
type ReturnType = <VirtualElementCallWidgetConfig as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for VirtualElementCallWidgetConfig
impl<UT> Lower<UT> for VirtualElementCallWidgetConfig
type FfiType = <VirtualElementCallWidgetConfig as FfiConverter<UT>>::FfiType
fn lower(obj: Self) -> Self::FfiType
fn write(obj: Self, buf: &mut Vec<u8>)
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Source§impl<UT> LowerError<UT> for VirtualElementCallWidgetConfig
impl<UT> LowerError<UT> for VirtualElementCallWidgetConfig
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for VirtualElementCallWidgetConfig
impl<UT> LowerReturn<UT> for VirtualElementCallWidgetConfig
Source§type ReturnType = <VirtualElementCallWidgetConfig as Lower<UT>>::FfiType
type ReturnType = <VirtualElementCallWidgetConfig as Lower<UT>>::FfiType
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustBuffer>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustBuffer>
Source§impl<UT> TypeId<UT> for VirtualElementCallWidgetConfig
impl<UT> TypeId<UT> for VirtualElementCallWidgetConfig
Auto Trait Implementations§
impl Freeze for VirtualElementCallWidgetConfig
impl RefUnwindSafe for VirtualElementCallWidgetConfig
impl Send for VirtualElementCallWidgetConfig
impl Sync for VirtualElementCallWidgetConfig
impl Unpin for VirtualElementCallWidgetConfig
impl UnwindSafe for VirtualElementCallWidgetConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more