use core::ffi::*;
use core::ptr::NonNull;
#[cfg(feature = "dispatch2")]
use dispatch2::*;
use objc2::__framework_prelude::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct STScreenTimeConfiguration;
);
extern_conformance!(
unsafe impl NSObjectProtocol for STScreenTimeConfiguration {}
);
impl STScreenTimeConfiguration {
extern_methods!(
#[unsafe(method(enforcesChildRestrictions))]
#[unsafe(method_family = none)]
pub unsafe fn enforcesChildRestrictions(&self) -> bool;
#[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_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct STScreenTimeConfigurationObserver;
);
extern_conformance!(
unsafe impl NSObjectProtocol for STScreenTimeConfigurationObserver {}
);
impl STScreenTimeConfigurationObserver {
extern_methods!(
#[cfg(feature = "dispatch2")]
#[unsafe(method(initWithUpdateQueue:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithUpdateQueue(
this: Allocated<Self>,
update_queue: &DispatchQueue,
) -> Retained<Self>;
#[unsafe(method(startObserving))]
#[unsafe(method_family = none)]
pub unsafe fn startObserving(&self);
#[unsafe(method(stopObserving))]
#[unsafe(method_family = none)]
pub unsafe fn stopObserving(&self);
#[unsafe(method(configuration))]
#[unsafe(method_family = none)]
pub unsafe fn configuration(&self) -> Option<Retained<STScreenTimeConfiguration>>;
#[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>;
);
}