use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
pub static WatchKitErrorDomain: &'static NSString;
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct WatchKitErrorCode(pub NSInteger);
impl WatchKitErrorCode {
#[doc(alias = "WatchKitUnknownError")]
pub const UnknownError: Self = Self(1);
#[doc(alias = "WatchKitApplicationDelegateWatchKitRequestReplyNotCalledError")]
pub const ApplicationDelegateWatchKitRequestReplyNotCalledError: Self = Self(2);
#[doc(alias = "WatchKitInvalidArgumentError")]
pub const InvalidArgumentError: Self = Self(3);
#[doc(alias = "WatchKitMediaPlayerError")]
pub const MediaPlayerError: Self = Self(4);
#[doc(alias = "WatchKitDownloadError")]
pub const DownloadError: Self = Self(5);
#[doc(alias = "WatchKitRecordingFailedError")]
pub const RecordingFailedError: Self = Self(6);
}
unsafe impl Encode for WatchKitErrorCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for WatchKitErrorCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}