web_sys/features/
gen_CheckerboardReportService.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "CheckerboardReportService",
10 typescript_type = "CheckerboardReportService"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `CheckerboardReportService` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"]
18 pub type CheckerboardReportService;
19 #[wasm_bindgen(catch, constructor, js_class = "CheckerboardReportService")]
20 #[doc = "The `new CheckerboardReportService(..)` constructor, creating a new instance of `CheckerboardReportService`."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/CheckerboardReportService)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"]
25 pub fn new() -> Result<CheckerboardReportService, JsValue>;
26 #[wasm_bindgen(
27 method,
28 js_class = "CheckerboardReportService",
29 js_name = "flushActiveReports"
30 )]
31 #[doc = "The `flushActiveReports()` method."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/flushActiveReports)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"]
36 pub fn flush_active_reports(this: &CheckerboardReportService);
37 #[wasm_bindgen(method, js_class = "CheckerboardReportService", js_name = "getReports")]
38 #[doc = "The `getReports()` method."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/getReports)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"]
43 pub fn get_reports(this: &CheckerboardReportService) -> ::js_sys::Array;
44 #[wasm_bindgen(
45 method,
46 js_class = "CheckerboardReportService",
47 js_name = "isRecordingEnabled"
48 )]
49 #[doc = "The `isRecordingEnabled()` method."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/isRecordingEnabled)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"]
54 pub fn is_recording_enabled(this: &CheckerboardReportService) -> bool;
55 #[wasm_bindgen(
56 method,
57 js_class = "CheckerboardReportService",
58 js_name = "setRecordingEnabled"
59 )]
60 #[doc = "The `setRecordingEnabled()` method."]
61 #[doc = ""]
62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/setRecordingEnabled)"]
63 #[doc = ""]
64 #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"]
65 pub fn set_recording_enabled(this: &CheckerboardReportService, a_enabled: bool);
66}