objc2-intents 0.3.2

Bindings to the Intents framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/intents/inworkoutlocationtyperesolutionresult?language=objc)
    #[unsafe(super(INIntentResolutionResult, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "INIntentResolutionResult")]
    pub struct INWorkoutLocationTypeResolutionResult;
);

#[cfg(feature = "INIntentResolutionResult")]
extern_conformance!(
    unsafe impl NSObjectProtocol for INWorkoutLocationTypeResolutionResult {}
);

#[cfg(feature = "INIntentResolutionResult")]
impl INWorkoutLocationTypeResolutionResult {
    extern_methods!(
        #[cfg(feature = "INWorkoutLocationType")]
        #[unsafe(method(successWithResolvedWorkoutLocationType:))]
        #[unsafe(method_family = none)]
        pub unsafe fn successWithResolvedWorkoutLocationType(
            resolved_workout_location_type: INWorkoutLocationType,
        ) -> Retained<Self>;

        #[cfg(feature = "INWorkoutLocationType")]
        #[deprecated]
        #[unsafe(method(successWithResolvedValue:))]
        #[unsafe(method_family = none)]
        pub unsafe fn successWithResolvedValue(
            resolved_value: INWorkoutLocationType,
        ) -> Retained<Self>;

        #[cfg(feature = "INWorkoutLocationType")]
        #[unsafe(method(confirmationRequiredWithWorkoutLocationTypeToConfirm:))]
        #[unsafe(method_family = none)]
        pub unsafe fn confirmationRequiredWithWorkoutLocationTypeToConfirm(
            workout_location_type_to_confirm: INWorkoutLocationType,
        ) -> Retained<Self>;

        #[cfg(feature = "INWorkoutLocationType")]
        #[deprecated]
        #[unsafe(method(confirmationRequiredWithValueToConfirm:))]
        #[unsafe(method_family = none)]
        pub unsafe fn confirmationRequiredWithValueToConfirm(
            value_to_confirm: INWorkoutLocationType,
        ) -> Retained<Self>;
    );
}

/// Methods declared on superclass `INIntentResolutionResult`.
#[cfg(feature = "INIntentResolutionResult")]
impl INWorkoutLocationTypeResolutionResult {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(needsValue))]
        #[unsafe(method_family = none)]
        pub unsafe fn needsValue() -> Retained<Self>;

        #[unsafe(method(notRequired))]
        #[unsafe(method_family = none)]
        pub unsafe fn notRequired() -> Retained<Self>;

        #[unsafe(method(unsupported))]
        #[unsafe(method_family = none)]
        pub unsafe fn unsupported() -> Retained<Self>;
    );
}

/// Methods declared on superclass `NSObject`.
#[cfg(feature = "INIntentResolutionResult")]
impl INWorkoutLocationTypeResolutionResult {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}