use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(INIntent, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntent")]
#[deprecated = "INSetRadioStationIntent is deprecated. There is no replacement."]
pub struct INSetRadioStationIntent;
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCoding for INSetRadioStationIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCopying for INSetRadioStationIntent {}
);
#[cfg(feature = "INIntent")]
unsafe impl CopyingHelper for INSetRadioStationIntent {
type Result = Self;
}
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSObjectProtocol for INSetRadioStationIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSSecureCoding for INSetRadioStationIntent {}
);
#[cfg(feature = "INIntent")]
impl INSetRadioStationIntent {
extern_methods!(
#[cfg(feature = "INRadioType")]
#[deprecated = "INSetRadioStationIntent is deprecated. There is no replacement."]
#[unsafe(method(initWithRadioType:frequency:stationName:channel:presetNumber:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithRadioType_frequency_stationName_channel_presetNumber(
this: Allocated<Self>,
radio_type: INRadioType,
frequency: Option<&NSNumber>,
station_name: Option<&NSString>,
channel: Option<&NSString>,
preset_number: Option<&NSNumber>,
) -> Retained<Self>;
#[cfg(feature = "INRadioType")]
#[deprecated = "INSetRadioStationIntent is deprecated. There is no replacement."]
#[unsafe(method(radioType))]
#[unsafe(method_family = none)]
pub unsafe fn radioType(&self) -> INRadioType;
#[deprecated = "INSetRadioStationIntent is deprecated. There is no replacement."]
#[unsafe(method(frequency))]
#[unsafe(method_family = none)]
pub unsafe fn frequency(&self) -> Option<Retained<NSNumber>>;
#[deprecated = "INSetRadioStationIntent is deprecated. There is no replacement."]
#[unsafe(method(stationName))]
#[unsafe(method_family = none)]
pub unsafe fn stationName(&self) -> Option<Retained<NSString>>;
#[deprecated = "INSetRadioStationIntent is deprecated. There is no replacement."]
#[unsafe(method(channel))]
#[unsafe(method_family = none)]
pub unsafe fn channel(&self) -> Option<Retained<NSString>>;
#[deprecated = "INSetRadioStationIntent is deprecated. There is no replacement."]
#[unsafe(method(presetNumber))]
#[unsafe(method_family = none)]
pub unsafe fn presetNumber(&self) -> Option<Retained<NSNumber>>;
);
}
#[cfg(feature = "INIntent")]
impl INSetRadioStationIntent {
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_protocol!(
#[deprecated = "INSetRadioStationIntentHandling is deprecated. There is no replacement."]
pub unsafe trait INSetRadioStationIntentHandling: NSObjectProtocol {
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSetRadioStationIntentResponse",
feature = "block2"
))]
#[deprecated = "INSetRadioStationIntentHandling is deprecated. There is no replacement."]
#[unsafe(method(handleSetRadioStation:completion:))]
#[unsafe(method_family = none)]
unsafe fn handleSetRadioStation_completion(
&self,
intent: &INSetRadioStationIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSetRadioStationIntentResponse>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSetRadioStationIntentResponse",
feature = "block2"
))]
#[deprecated = "INSetRadioStationIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(confirmSetRadioStation:completion:))]
#[unsafe(method_family = none)]
unsafe fn confirmSetRadioStation_completion(
&self,
intent: &INSetRadioStationIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSetRadioStationIntentResponse>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INRadioTypeResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetRadioStationIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveRadioTypeForSetRadioStation:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveRadioTypeForSetRadioStation_withCompletion(
&self,
intent: &INSetRadioStationIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INRadioTypeResolutionResult>)>,
);
#[cfg(all(
feature = "INDoubleResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetRadioStationIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveFrequencyForSetRadioStation:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveFrequencyForSetRadioStation_withCompletion(
&self,
intent: &INSetRadioStationIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INDoubleResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INStringResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetRadioStationIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveStationNameForSetRadioStation:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveStationNameForSetRadioStation_withCompletion(
&self,
intent: &INSetRadioStationIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INStringResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INStringResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetRadioStationIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveChannelForSetRadioStation:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveChannelForSetRadioStation_withCompletion(
&self,
intent: &INSetRadioStationIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INStringResolutionResult>)>,
);
#[cfg(all(
feature = "INIntegerResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetRadioStationIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolvePresetNumberForSetRadioStation:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolvePresetNumberForSetRadioStation_withCompletion(
&self,
intent: &INSetRadioStationIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INIntegerResolutionResult>)>,
);
}
);