objc2_watch_kit/generated/
WKInterfacePaymentButton.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::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/watchkit/wkinterfacepaymentbutton?language=objc)
10    #[unsafe(super(WKInterfaceObject, NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    #[cfg(feature = "WKInterfaceObject")]
13    pub struct WKInterfacePaymentButton;
14);
15
16#[cfg(feature = "WKInterfaceObject")]
17extern_conformance!(
18    unsafe impl NSObjectProtocol for WKInterfacePaymentButton {}
19);
20
21#[cfg(feature = "WKInterfaceObject")]
22impl WKInterfacePaymentButton {
23    extern_methods!(
24        /// # Safety
25        ///
26        /// - `target` should be of the correct type.
27        /// - `action` must be a valid selector.
28        #[unsafe(method(initWithTarget:action:))]
29        #[unsafe(method_family = init)]
30        pub unsafe fn initWithTarget_action(
31            this: Allocated<Self>,
32            target: Option<&AnyObject>,
33            action: Sel,
34        ) -> Retained<Self>;
35    );
36}
37
38/// Methods declared on superclass `WKInterfaceObject`.
39#[cfg(feature = "WKInterfaceObject")]
40impl WKInterfacePaymentButton {
41    extern_methods!(
42        #[unsafe(method(init))]
43        #[unsafe(method_family = init)]
44        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
45    );
46}
47
48/// Methods declared on superclass `NSObject`.
49#[cfg(feature = "WKInterfaceObject")]
50impl WKInterfacePaymentButton {
51    extern_methods!(
52        #[unsafe(method(new))]
53        #[unsafe(method_family = new)]
54        pub unsafe fn new() -> Retained<Self>;
55    );
56}