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
21unsafe impl NSObjectProtocol for SKStorefront {}
22
23impl SKStorefront {
24    extern_methods!(
25        #[deprecated = "Use 'Storefront.countryCode'"]
26        #[unsafe(method(countryCode))]
27        #[unsafe(method_family = none)]
28        pub unsafe fn countryCode(&self) -> Retained<NSString>;
29
30        #[deprecated = "Use 'Storefront.id'"]
31        #[unsafe(method(identifier))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn identifier(&self) -> Retained<NSString>;
34    );
35}
36
37/// Methods declared on superclass `NSObject`.
38impl SKStorefront {
39    extern_methods!(
40        #[unsafe(method(init))]
41        #[unsafe(method_family = init)]
42        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
43
44        #[unsafe(method(new))]
45        #[unsafe(method_family = new)]
46        pub unsafe fn new() -> Retained<Self>;
47    );
48}