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:))]
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#[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#[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}