use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-health-kit")]
use objc2_health_kit::*;
use crate::*;
extern_class!(
#[unsafe(super(WKInterfaceObject, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "WKInterfaceObject")]
pub struct WKInterfaceActivityRing;
);
#[cfg(feature = "WKInterfaceObject")]
extern_conformance!(
unsafe impl NSObjectProtocol for WKInterfaceActivityRing {}
);
#[cfg(feature = "WKInterfaceObject")]
impl WKInterfaceActivityRing {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "objc2-health-kit")]
#[unsafe(method(setActivitySummary:animated:))]
#[unsafe(method_family = none)]
pub unsafe fn setActivitySummary_animated(
&self,
activity_summary: Option<&HKActivitySummary>,
animated: bool,
);
);
}
#[cfg(feature = "WKInterfaceObject")]
impl WKInterfaceActivityRing {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}