objc2_intents/generated/
INTicketedEvent.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-core-location")]
6use objc2_core_location::*;
7use objc2_foundation::*;
8
9use crate::*;
10
11extern_class!(
12    /// [Apple's documentation](https://developer.apple.com/documentation/intents/inticketedevent?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct INTicketedEvent;
16);
17
18extern_conformance!(
19    unsafe impl NSCoding for INTicketedEvent {}
20);
21
22extern_conformance!(
23    unsafe impl NSCopying for INTicketedEvent {}
24);
25
26unsafe impl CopyingHelper for INTicketedEvent {
27    type Result = Self;
28}
29
30extern_conformance!(
31    unsafe impl NSObjectProtocol for INTicketedEvent {}
32);
33
34extern_conformance!(
35    unsafe impl NSSecureCoding for INTicketedEvent {}
36);
37
38impl INTicketedEvent {
39    extern_methods!(
40        #[unsafe(method(init))]
41        #[unsafe(method_family = init)]
42        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
43
44        #[cfg(all(
45            feature = "INDateComponentsRange",
46            feature = "INTicketedEventCategory",
47            feature = "objc2-core-location"
48        ))]
49        #[unsafe(method(initWithCategory:name:eventDuration:location:))]
50        #[unsafe(method_family = init)]
51        pub unsafe fn initWithCategory_name_eventDuration_location(
52            this: Allocated<Self>,
53            category: INTicketedEventCategory,
54            name: &NSString,
55            event_duration: &INDateComponentsRange,
56            location: Option<&CLPlacemark>,
57        ) -> Retained<Self>;
58
59        #[cfg(feature = "INTicketedEventCategory")]
60        #[unsafe(method(category))]
61        #[unsafe(method_family = none)]
62        pub unsafe fn category(&self) -> INTicketedEventCategory;
63
64        #[unsafe(method(name))]
65        #[unsafe(method_family = none)]
66        pub unsafe fn name(&self) -> Retained<NSString>;
67
68        #[cfg(feature = "INDateComponentsRange")]
69        #[unsafe(method(eventDuration))]
70        #[unsafe(method_family = none)]
71        pub unsafe fn eventDuration(&self) -> Retained<INDateComponentsRange>;
72
73        #[cfg(feature = "objc2-core-location")]
74        #[unsafe(method(location))]
75        #[unsafe(method_family = none)]
76        pub unsafe fn location(&self) -> Option<Retained<CLPlacemark>>;
77    );
78}
79
80/// Methods declared on superclass `NSObject`.
81impl INTicketedEvent {
82    extern_methods!(
83        #[unsafe(method(new))]
84        #[unsafe(method_family = new)]
85        pub unsafe fn new() -> Retained<Self>;
86    );
87}