objc2_car_play/generated/
CPContactTemplate.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(CPTemplate, NSObject))]
13 #[thread_kind = MainThreadOnly]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 #[cfg(feature = "CPTemplate")]
16 pub struct CPContactTemplate;
17);
18
19#[cfg(all(feature = "CPBarButtonProviding", feature = "CPTemplate"))]
20extern_conformance!(
21 unsafe impl CPBarButtonProviding for CPContactTemplate {}
22);
23
24#[cfg(feature = "CPTemplate")]
25extern_conformance!(
26 unsafe impl NSCoding for CPContactTemplate {}
27);
28
29#[cfg(feature = "CPTemplate")]
30extern_conformance!(
31 unsafe impl NSObjectProtocol for CPContactTemplate {}
32);
33
34#[cfg(feature = "CPTemplate")]
35extern_conformance!(
36 unsafe impl NSSecureCoding for CPContactTemplate {}
37);
38
39#[cfg(feature = "CPTemplate")]
40impl CPContactTemplate {
41 extern_methods!(
42 #[unsafe(method(init))]
43 #[unsafe(method_family = init)]
44 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
45
46 #[unsafe(method(new))]
47 #[unsafe(method_family = new)]
48 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
49
50 #[cfg(feature = "CPContact")]
51 #[unsafe(method(initWithContact:))]
55 #[unsafe(method_family = init)]
56 pub unsafe fn initWithContact(this: Allocated<Self>, contact: &CPContact)
57 -> Retained<Self>;
58
59 #[cfg(feature = "CPContact")]
60 #[unsafe(method(contact))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn contact(&self) -> Retained<CPContact>;
65
66 #[cfg(feature = "CPContact")]
67 #[unsafe(method(setContact:))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn setContact(&self, contact: &CPContact);
71 );
72}