objc2_store_kit/generated/
SKStorefront.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/storekit/skstorefront?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[deprecated = "Use Storefront"]
14    pub struct SKStorefront;
15);
16
17unsafe impl Send for SKStorefront {}
18
19unsafe impl Sync for SKStorefront {}
20
21extern_conformance!(
22    unsafe impl NSObjectProtocol for SKStorefront {}
23);
24
25impl SKStorefront {
26    extern_methods!(
27        #[deprecated = "Use 'Storefront.countryCode'"]
28        #[unsafe(method(countryCode))]
29        #[unsafe(method_family = none)]
30        pub unsafe fn countryCode(&self) -> Retained<NSString>;
31
32        #[deprecated = "Use 'Storefront.id'"]
33        #[unsafe(method(identifier))]
34        #[unsafe(method_family = none)]
35        pub unsafe fn identifier(&self) -> Retained<NSString>;
36    );
37}
38
39/// Methods declared on superclass `NSObject`.
40impl SKStorefront {
41    extern_methods!(
42        #[unsafe(method(init))]
43        #[unsafe(method_family = init)]
44        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
45
46        #[unsafe(method(new))]
47        #[unsafe(method_family = new)]
48        pub unsafe fn new() -> Retained<Self>;
49    );
50}