pub struct VirtualElementCallWidgetOptions {Show 21 fields
pub element_call_url: String,
pub widget_id: String,
pub parent_url: Option<String>,
pub header: Option<HeaderStyle>,
pub hide_header: Option<bool>,
pub preload: Option<bool>,
pub font_scale: Option<f64>,
pub app_prompt: Option<bool>,
pub confine_to_room: Option<bool>,
pub font: Option<String>,
pub encryption: EncryptionSystem,
pub intent: Option<Intent>,
pub hide_screensharing: bool,
pub posthog_user_id: Option<String>,
pub posthog_api_host: Option<String>,
pub posthog_api_key: Option<String>,
pub rageshake_submit_url: Option<String>,
pub sentry_dsn: Option<String>,
pub sentry_environment: Option<String>,
pub controlled_media_devices: bool,
pub send_notification_type: Option<NotificationType>,
}
experimental-widgets
only.Expand description
Properties to create a new virtual Element Call widget.
Fields§
§element_call_url: String
The url to the app.
E.g. https://call.element.io, https://call.element.dev, https://call.element.dev/room
widget_id: String
The widget id.
parent_url: Option<String>
The url that is used as the target for the PostMessages sent by the widget (to the client).
For a web app client this is the client url. In case of using other
platforms the client most likely is setup up to listen to
postmessages in the same webview the widget is hosted. In this case
the parent_url
is set to the url of the webview with the widget. Be
aware that this means that the widget will receive its own postmessage
messages. The matrix-widget-api
(js) ignores those so this works but
it might break custom implementations.
Defaults to element_call_url
for the non-iframe (dedicated webview)
usecase.
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
font_scale: Option<f64>
The font scale which will be used inside element call.
Default: 1
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
font: Option<String>
The font to use, to adapt to the system font.
encryption: EncryptionSystem
The encryption system to use.
Use EncryptionSystem::Unencrypted
to disable encryption.
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.
hide_screensharing: bool
Do not show the screenshare button.
posthog_user_id: Option<String>
Can be used to pass a PostHog id to element call.
posthog_api_host: Option<String>
The host of the posthog api. This is only used by the embedded package of Element Call.
posthog_api_key: Option<String>
The key for the posthog api. This is only used by the embedded package of Element Call.
rageshake_submit_url: Option<String>
The url to use for submitting rageshakes. This is only used by the embedded package of Element Call.
sentry_dsn: Option<String>
Sentry DSN This is only used by the embedded package of Element Call.
sentry_environment: Option<String>
Sentry environment This is only used by the embedded package of Element Call.
controlled_media_devices: bool
false
: the webview shows a a list of devices injected by the client. (used on ios & android)
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 VirtualElementCallWidgetOptions
impl Clone for VirtualElementCallWidgetOptions
Source§fn clone(&self) -> VirtualElementCallWidgetOptions
fn clone(&self) -> VirtualElementCallWidgetOptions
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 VirtualElementCallWidgetOptions
impl<UT> ConvertError<UT> for VirtualElementCallWidgetOptions
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Default for VirtualElementCallWidgetOptions
impl Default for VirtualElementCallWidgetOptions
Source§fn default() -> VirtualElementCallWidgetOptions
fn default() -> VirtualElementCallWidgetOptions
Source§impl<UT> FfiConverter<UT> for VirtualElementCallWidgetOptions
impl<UT> FfiConverter<UT> for VirtualElementCallWidgetOptions
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 VirtualElementCallWidgetOptions
impl<UT> Lift<UT> for VirtualElementCallWidgetOptions
Source§impl<UT> LiftRef<UT> for VirtualElementCallWidgetOptions
impl<UT> LiftRef<UT> for VirtualElementCallWidgetOptions
Source§impl<UT> LiftReturn<UT> for VirtualElementCallWidgetOptions
impl<UT> LiftReturn<UT> for VirtualElementCallWidgetOptions
Source§type ReturnType = <VirtualElementCallWidgetOptions as Lift<UT>>::FfiType
type ReturnType = <VirtualElementCallWidgetOptions 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 VirtualElementCallWidgetOptions
impl<UT> Lower<UT> for VirtualElementCallWidgetOptions
type FfiType = <VirtualElementCallWidgetOptions 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 VirtualElementCallWidgetOptions
impl<UT> LowerError<UT> for VirtualElementCallWidgetOptions
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for VirtualElementCallWidgetOptions
impl<UT> LowerReturn<UT> for VirtualElementCallWidgetOptions
Source§type ReturnType = <VirtualElementCallWidgetOptions as Lower<UT>>::FfiType
type ReturnType = <VirtualElementCallWidgetOptions 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 VirtualElementCallWidgetOptions
impl<UT> TypeId<UT> for VirtualElementCallWidgetOptions
Auto Trait Implementations§
impl Freeze for VirtualElementCallWidgetOptions
impl RefUnwindSafe for VirtualElementCallWidgetOptions
impl Send for VirtualElementCallWidgetOptions
impl Sync for VirtualElementCallWidgetOptions
impl Unpin for VirtualElementCallWidgetOptions
impl UnwindSafe for VirtualElementCallWidgetOptions
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