objc2_watch_kit/generated/
WKInterfaceActivityRing.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-health-kit")]
7use objc2_health_kit::*;
8
9use crate::*;
10
11extern_class!(
12    /// [Apple's documentation](https://developer.apple.com/documentation/watchkit/wkinterfaceactivityring?language=objc)
13    #[unsafe(super(WKInterfaceObject, NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    #[cfg(feature = "WKInterfaceObject")]
16    pub struct WKInterfaceActivityRing;
17);
18
19#[cfg(feature = "WKInterfaceObject")]
20extern_conformance!(
21    unsafe impl NSObjectProtocol for WKInterfaceActivityRing {}
22);
23
24#[cfg(feature = "WKInterfaceObject")]
25impl WKInterfaceActivityRing {
26    extern_methods!(
27        #[unsafe(method(init))]
28        #[unsafe(method_family = init)]
29        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
30
31        #[cfg(feature = "objc2-health-kit")]
32        #[unsafe(method(setActivitySummary:animated:))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn setActivitySummary_animated(
35            &self,
36            activity_summary: Option<&HKActivitySummary>,
37            animated: bool,
38        );
39    );
40}
41
42/// Methods declared on superclass `NSObject`.
43#[cfg(feature = "WKInterfaceObject")]
44impl WKInterfaceActivityRing {
45    extern_methods!(
46        #[unsafe(method(new))]
47        #[unsafe(method_family = new)]
48        pub unsafe fn new() -> Retained<Self>;
49    );
50}