objc2_browser_engine_kit/generated/
BEWebAppManifest.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// An object that represents a web application manifest
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/browserenginekit/bewebappmanifest?language=objc)
13    #[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        /// Returns nil if manifestURL is invalid or jsonData cannot be parsed.
29        #[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
47/// Methods declared on superclass `NSObject`.
48impl BEWebAppManifest {
49    extern_methods!(
50        #[unsafe(method(new))]
51        #[unsafe(method_family = new)]
52        pub unsafe fn new() -> Retained<Self>;
53    );
54}