objc2_car_play/generated/
CPInformationItem.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::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/carplay/cpinformationitem?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct CPInformationItem;
14);
15
16extern_conformance!(
17    unsafe impl NSCoding for CPInformationItem {}
18);
19
20extern_conformance!(
21    unsafe impl NSObjectProtocol for CPInformationItem {}
22);
23
24extern_conformance!(
25    unsafe impl NSSecureCoding for CPInformationItem {}
26);
27
28impl CPInformationItem {
29    extern_methods!(
30        /// Initializes a new  item to be used with
31        /// `CPInformationTemplate.`
32        /// Parameter `title`: An optional string that will be styled by the template as the title text of the item.
33        ///
34        /// Parameter `detail`: An optional string that will be styled by the template as the detail text of the item.
35        #[unsafe(method(initWithTitle:detail:))]
36        #[unsafe(method_family = init)]
37        pub unsafe fn initWithTitle_detail(
38            this: Allocated<Self>,
39            title: Option<&NSString>,
40            detail: Option<&NSString>,
41        ) -> Retained<Self>;
42
43        #[unsafe(method(title))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn title(&self) -> Option<Retained<NSString>>;
46
47        #[unsafe(method(detail))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn detail(&self) -> Option<Retained<NSString>>;
50
51        #[unsafe(method(new))]
52        #[unsafe(method_family = new)]
53        pub unsafe fn new() -> Retained<Self>;
54
55        #[unsafe(method(init))]
56        #[unsafe(method_family = init)]
57        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
58    );
59}