objc2-tv-ml-kit 0.3.2

Bindings to the TVMLKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// Factory for registration of new elements that extend Apple TV markup language. Registration is required
    /// in order for the framework to parse these new elements and should happen prior to initializing TVApplicationController.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/tvmlkit/tvelementfactory?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[deprecated = "Please use SwiftUI or UIKit"]
    pub struct TVElementFactory;
);

extern_conformance!(
    unsafe impl NSObjectProtocol for TVElementFactory {}
);

impl TVElementFactory {
    extern_methods!(
        /// # Safety
        ///
        /// `element_class` probably has further requirements.
        #[deprecated = "Please use SwiftUI or UIKit"]
        #[unsafe(method(registerViewElementClass:forElementName:))]
        #[unsafe(method_family = none)]
        pub unsafe fn registerViewElementClass_forElementName(
            element_class: &AnyClass,
            element_name: &NSString,
        );
    );
}

/// Methods declared on superclass `NSObject`.
impl TVElementFactory {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}