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::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/tvmlkit/tvmlkiterrordomain?language=objc)
    #[deprecated = "Please use SwiftUI or UIKit"]
    pub static TVMLKitErrorDomain: &'static NSString;
}

/// [Apple's documentation](https://developer.apple.com/documentation/tvmlkit/tvmlkiterror?language=objc)
// NS_ENUM
#[deprecated = "Please use SwiftUI or UIKit"]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct TVMLKitError(pub NSInteger);
impl TVMLKitError {
    #[doc(alias = "TVMLKitErrorUnknown")]
    #[deprecated = "Please use SwiftUI or UIKit"]
    pub const Unknown: Self = Self(1);
    #[doc(alias = "TVMLKitErrorInternetUnavailable")]
    #[deprecated = "Please use SwiftUI or UIKit"]
    pub const InternetUnavailable: Self = Self(2);
    #[doc(alias = "TVMLKitErrorFailedToLaunch")]
    #[deprecated = "Please use SwiftUI or UIKit"]
    pub const FailedToLaunch: Self = Self(3);
    #[doc(alias = "TVMLKitErrorLast")]
    #[deprecated = "Please use SwiftUI or UIKit"]
    pub const Last: Self = Self(4);
}

unsafe impl Encode for TVMLKitError {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for TVMLKitError {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}