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        #[deprecated = "Please use SwiftUI or UIKit"]
28        #[unsafe(method(registerViewElementClass:forElementName:))]
29        #[unsafe(method_family = none)]
30        pub unsafe fn registerViewElementClass_forElementName(
31            element_class: &AnyClass,
32            element_name: &NSString,
33        );
34    );
35}
36
37/// Methods declared on superclass `NSObject`.
38impl TVElementFactory {
39    extern_methods!(
40        #[unsafe(method(init))]
41        #[unsafe(method_family = init)]
42        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
43
44        #[unsafe(method(new))]
45        #[unsafe(method_family = new)]
46        pub unsafe fn new() -> Retained<Self>;
47    );
48}