objc2_browser_engine_kit/generated/
BEWebAppManifest.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct BEWebAppManifest;
16);
17
18extern_conformance!(
19 unsafe impl NSObjectProtocol for BEWebAppManifest {}
20);
21
22impl BEWebAppManifest {
23 extern_methods!(
24 #[unsafe(method(init))]
25 #[unsafe(method_family = init)]
26 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
27
28 #[unsafe(method(initWithJSONData:manifestURL:))]
30 #[unsafe(method_family = init)]
31 pub unsafe fn initWithJSONData_manifestURL(
32 this: Allocated<Self>,
33 json_data: &NSData,
34 manifest_url: &NSURL,
35 ) -> Option<Retained<BEWebAppManifest>>;
36
37 #[unsafe(method(jsonData))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn jsonData(&self) -> Retained<NSData>;
40
41 #[unsafe(method(manifestURL))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn manifestURL(&self) -> Retained<NSURL>;
44 );
45}
46
47impl BEWebAppManifest {
49 extern_methods!(
50 #[unsafe(method(new))]
51 #[unsafe(method_family = new)]
52 pub unsafe fn new() -> Retained<Self>;
53 );
54}