objc2_watch_kit/generated/
WKInterfacePaymentButton.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[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 #[unsafe(method(initWithTarget:action:))]
25 #[unsafe(method_family = init)]
26 pub unsafe fn initWithTarget_action(
27 this: Allocated<Self>,
28 target: Option<&AnyObject>,
29 action: Sel,
30 ) -> Retained<Self>;
31 );
32}
33
34#[cfg(feature = "WKInterfaceObject")]
36impl WKInterfacePaymentButton {
37 extern_methods!(
38 #[unsafe(method(init))]
39 #[unsafe(method_family = init)]
40 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
41 );
42}
43
44#[cfg(feature = "WKInterfaceObject")]
46impl WKInterfacePaymentButton {
47 extern_methods!(
48 #[unsafe(method(new))]
49 #[unsafe(method_family = new)]
50 pub unsafe fn new() -> Retained<Self>;
51 );
52}