objc2_tv_ml_kit/generated/
TVElementFactory.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// Factory for registration of new elements that extend Apple TV markup language. Registration is required
12    /// in order for the framework to parse these new elements and should happen prior to initializing TVApplicationController.
13    ///
14    /// See also [Apple's documentation](https://developer.apple.com/documentation/tvmlkit/tvelementfactory?language=objc)
15    #[unsafe(super(NSObject))]
16    #[derive(Debug, PartialEq, Eq, Hash)]
17    #[deprecated = "Please use SwiftUI or UIKit"]
18    pub struct TVElementFactory;
19);
20
21extern_conformance!(
22    unsafe impl NSObjectProtocol for TVElementFactory {}
23);
24
25impl TVElementFactory {
26    extern_methods!(
27        /// # Safety
28        ///
29        /// `element_class` probably has further requirements.
30        #[deprecated = "Please use SwiftUI or UIKit"]
31        #[unsafe(method(registerViewElementClass:forElementName:))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn registerViewElementClass_forElementName(
34            element_class: &AnyClass,
35            element_name: &NSString,
36        );
37    );
38}
39
40/// Methods declared on superclass `NSObject`.
41impl TVElementFactory {
42    extern_methods!(
43        #[unsafe(method(init))]
44        #[unsafe(method_family = init)]
45        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
46
47        #[unsafe(method(new))]
48        #[unsafe(method_family = new)]
49        pub unsafe fn new() -> Retained<Self>;
50    );
51}