use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-graphics")]
use objc2_core_graphics::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct PKAddPassMetadataPreview;
);
extern_conformance!(
unsafe impl NSObjectProtocol for PKAddPassMetadataPreview {}
);
impl PKAddPassMetadataPreview {
extern_methods!(
#[cfg(feature = "objc2-core-graphics")]
#[unsafe(method(initWithPassThumbnail:localizedDescription:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithPassThumbnail_localizedDescription(
this: Allocated<Self>,
pass_thumbnail: &CGImage,
description: &NSString,
) -> Retained<Self>;
#[cfg(feature = "objc2-core-graphics")]
#[unsafe(method(previewWithPassThumbnail:localizedDescription:))]
#[unsafe(method_family = none)]
pub unsafe fn previewWithPassThumbnail_localizedDescription(
pass_thumbnail: &CGImage,
description: &NSString,
) -> Retained<Self>;
#[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>;
#[cfg(feature = "objc2-core-graphics")]
#[unsafe(method(passThumbnailImage))]
#[unsafe(method_family = none)]
pub unsafe fn passThumbnailImage(&self) -> Option<Retained<CGImage>>;
#[unsafe(method(localizedDescription))]
#[unsafe(method_family = none)]
pub unsafe fn localizedDescription(&self) -> Option<Retained<NSString>>;
);
}
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct PKAddSecureElementPassConfiguration;
);
extern_conformance!(
unsafe impl NSObjectProtocol for PKAddSecureElementPassConfiguration {}
);
impl PKAddSecureElementPassConfiguration {
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>;
#[unsafe(method(issuerIdentifier))]
#[unsafe(method_family = none)]
pub unsafe fn issuerIdentifier(&self) -> Option<Retained<NSString>>;
#[unsafe(method(setIssuerIdentifier:))]
#[unsafe(method_family = none)]
pub unsafe fn setIssuerIdentifier(&self, issuer_identifier: Option<&NSString>);
#[unsafe(method(localizedDescription))]
#[unsafe(method_family = none)]
pub unsafe fn localizedDescription(&self) -> Option<Retained<NSString>>;
#[unsafe(method(setLocalizedDescription:))]
#[unsafe(method_family = none)]
pub unsafe fn setLocalizedDescription(&self, localized_description: Option<&NSString>);
);
}