use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct HKActivitySummary;
);
extern_conformance!(
unsafe impl NSCoding for HKActivitySummary {}
);
extern_conformance!(
unsafe impl NSCopying for HKActivitySummary {}
);
unsafe impl CopyingHelper for HKActivitySummary {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for HKActivitySummary {}
);
extern_conformance!(
unsafe impl NSSecureCoding for HKActivitySummary {}
);
impl HKActivitySummary {
extern_methods!(
#[unsafe(method(dateComponentsForCalendar:))]
#[unsafe(method_family = none)]
pub unsafe fn dateComponentsForCalendar(
&self,
calendar: &NSCalendar,
) -> Retained<NSDateComponents>;
#[cfg(feature = "HKCharacteristicValues")]
#[unsafe(method(activityMoveMode))]
#[unsafe(method_family = none)]
pub unsafe fn activityMoveMode(&self) -> HKActivityMoveMode;
#[cfg(feature = "HKCharacteristicValues")]
#[unsafe(method(setActivityMoveMode:))]
#[unsafe(method_family = none)]
pub unsafe fn setActivityMoveMode(&self, activity_move_mode: HKActivityMoveMode);
#[unsafe(method(isPaused))]
#[unsafe(method_family = none)]
pub unsafe fn isPaused(&self) -> bool;
#[unsafe(method(setPaused:))]
#[unsafe(method_family = none)]
pub unsafe fn setPaused(&self, paused: bool);
#[cfg(feature = "HKQuantity")]
#[unsafe(method(activeEnergyBurned))]
#[unsafe(method_family = none)]
pub unsafe fn activeEnergyBurned(&self) -> Retained<HKQuantity>;
#[cfg(feature = "HKQuantity")]
#[unsafe(method(setActiveEnergyBurned:))]
#[unsafe(method_family = none)]
pub unsafe fn setActiveEnergyBurned(&self, active_energy_burned: &HKQuantity);
#[cfg(feature = "HKQuantity")]
#[unsafe(method(appleMoveTime))]
#[unsafe(method_family = none)]
pub unsafe fn appleMoveTime(&self) -> Retained<HKQuantity>;
#[cfg(feature = "HKQuantity")]
#[unsafe(method(setAppleMoveTime:))]
#[unsafe(method_family = none)]
pub unsafe fn setAppleMoveTime(&self, apple_move_time: &HKQuantity);
#[cfg(feature = "HKQuantity")]
#[unsafe(method(appleExerciseTime))]
#[unsafe(method_family = none)]
pub unsafe fn appleExerciseTime(&self) -> Retained<HKQuantity>;
#[cfg(feature = "HKQuantity")]
#[unsafe(method(setAppleExerciseTime:))]
#[unsafe(method_family = none)]
pub unsafe fn setAppleExerciseTime(&self, apple_exercise_time: &HKQuantity);
#[cfg(feature = "HKQuantity")]
#[unsafe(method(appleStandHours))]
#[unsafe(method_family = none)]
pub unsafe fn appleStandHours(&self) -> Retained<HKQuantity>;
#[cfg(feature = "HKQuantity")]
#[unsafe(method(setAppleStandHours:))]
#[unsafe(method_family = none)]
pub unsafe fn setAppleStandHours(&self, apple_stand_hours: &HKQuantity);
#[cfg(feature = "HKQuantity")]
#[unsafe(method(activeEnergyBurnedGoal))]
#[unsafe(method_family = none)]
pub unsafe fn activeEnergyBurnedGoal(&self) -> Retained<HKQuantity>;
#[cfg(feature = "HKQuantity")]
#[unsafe(method(setActiveEnergyBurnedGoal:))]
#[unsafe(method_family = none)]
pub unsafe fn setActiveEnergyBurnedGoal(&self, active_energy_burned_goal: &HKQuantity);
#[cfg(feature = "HKQuantity")]
#[unsafe(method(appleMoveTimeGoal))]
#[unsafe(method_family = none)]
pub unsafe fn appleMoveTimeGoal(&self) -> Retained<HKQuantity>;
#[cfg(feature = "HKQuantity")]
#[unsafe(method(setAppleMoveTimeGoal:))]
#[unsafe(method_family = none)]
pub unsafe fn setAppleMoveTimeGoal(&self, apple_move_time_goal: &HKQuantity);
#[cfg(feature = "HKQuantity")]
#[deprecated]
#[unsafe(method(appleExerciseTimeGoal))]
#[unsafe(method_family = none)]
pub unsafe fn appleExerciseTimeGoal(&self) -> Retained<HKQuantity>;
#[cfg(feature = "HKQuantity")]
#[deprecated]
#[unsafe(method(setAppleExerciseTimeGoal:))]
#[unsafe(method_family = none)]
pub unsafe fn setAppleExerciseTimeGoal(&self, apple_exercise_time_goal: &HKQuantity);
#[cfg(feature = "HKQuantity")]
#[unsafe(method(exerciseTimeGoal))]
#[unsafe(method_family = none)]
pub unsafe fn exerciseTimeGoal(&self) -> Option<Retained<HKQuantity>>;
#[cfg(feature = "HKQuantity")]
#[unsafe(method(setExerciseTimeGoal:))]
#[unsafe(method_family = none)]
pub unsafe fn setExerciseTimeGoal(&self, exercise_time_goal: Option<&HKQuantity>);
#[cfg(feature = "HKQuantity")]
#[deprecated]
#[unsafe(method(appleStandHoursGoal))]
#[unsafe(method_family = none)]
pub unsafe fn appleStandHoursGoal(&self) -> Retained<HKQuantity>;
#[cfg(feature = "HKQuantity")]
#[deprecated]
#[unsafe(method(setAppleStandHoursGoal:))]
#[unsafe(method_family = none)]
pub unsafe fn setAppleStandHoursGoal(&self, apple_stand_hours_goal: &HKQuantity);
#[cfg(feature = "HKQuantity")]
#[unsafe(method(standHoursGoal))]
#[unsafe(method_family = none)]
pub unsafe fn standHoursGoal(&self) -> Option<Retained<HKQuantity>>;
#[cfg(feature = "HKQuantity")]
#[unsafe(method(setStandHoursGoal:))]
#[unsafe(method_family = none)]
pub unsafe fn setStandHoursGoal(&self, stand_hours_goal: Option<&HKQuantity>);
);
}
impl HKActivitySummary {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern "C" {
pub static HKPredicateKeyPathDateComponents: &'static NSString;
}