Trait script::dom::bindings::codegen::Bindings::XRInputSourcesChangeEventBinding::XRInputSourcesChangeEvent_Binding::XRInputSourcesChangeEventMethods
source · pub trait XRInputSourcesChangeEventMethods<D: DomTypes> {
// Required methods
fn Session(&self) -> Root<Dom<XRSession>>;
fn Added(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
fn Removed(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: &XRInputSourcesChangeEventInit,
) -> Root<Dom<XRInputSourcesChangeEvent>>;
}
Required Methods§
fn Session(&self) -> Root<Dom<XRSession>>
fn Added(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>)
fn Removed(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>)
fn IsTrusted(&self) -> bool
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &XRInputSourcesChangeEventInit, ) -> Root<Dom<XRInputSourcesChangeEvent>>
Object Safety§
This trait is not object safe.