objc2-store-kit 0.3.2

Bindings to the StoreKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/storekit/skarcadeservice?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct SKArcadeService;
);

extern_conformance!(
    unsafe impl NSObjectProtocol for SKArcadeService {}
);

impl SKArcadeService {
    extern_methods!(
        #[cfg(feature = "block2")]
        #[unsafe(method(registerArcadeAppWithRandomFromLib:randomFromLibLength:resultHandler:))]
        #[unsafe(method_family = none)]
        pub unsafe fn registerArcadeAppWithRandomFromLib_randomFromLibLength_resultHandler(
            random_from_lib: &NSData,
            random_from_lib_length: u32,
            result_handler: &block2::DynBlock<
                dyn Fn(*mut NSData, u32, *mut NSData, u32, *mut NSError),
            >,
        );

        #[cfg(feature = "block2")]
        #[unsafe(method(arcadeSubscriptionStatusWithNonce:resultHandler:))]
        #[unsafe(method_family = none)]
        pub unsafe fn arcadeSubscriptionStatusWithNonce_resultHandler(
            nonce: u64,
            result_handler: &block2::DynBlock<
                dyn Fn(*mut NSData, u32, *mut NSData, u32, *mut NSError),
            >,
        );

        #[unsafe(method(repairArcadeApp))]
        #[unsafe(method_family = none)]
        pub unsafe fn repairArcadeApp();
    );
}

/// Methods declared on superclass `NSObject`.
impl SKArcadeService {
    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>;
    );
}