objc2_tv_services/generated/
TVTopShelfItemCollection.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(TVTopShelfObject, NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 #[cfg(feature = "TVTopShelfObject")]
16 pub struct TVTopShelfItemCollection<Item: ?Sized = AnyObject>;
17);
18
19#[cfg(feature = "TVTopShelfObject")]
20extern_conformance!(
21 unsafe impl<Item: ?Sized> NSObjectProtocol for TVTopShelfItemCollection<Item> {}
22);
23
24#[cfg(feature = "TVTopShelfObject")]
25impl<Item: Message> TVTopShelfItemCollection<Item> {
26 extern_methods!(
27 #[unsafe(method(items))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn items(&self) -> Retained<NSArray<Item>>;
31
32 #[unsafe(method(initWithItems:))]
34 #[unsafe(method_family = init)]
35 pub unsafe fn initWithItems(this: Allocated<Self>, items: &NSArray<Item>)
36 -> Retained<Self>;
37 );
38}
39
40#[cfg(feature = "TVTopShelfObject")]
42impl<Item: Message> TVTopShelfItemCollection<Item> {
43 extern_methods!(
44 #[unsafe(method(init))]
45 #[unsafe(method_family = init)]
46 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
47
48 #[unsafe(method(new))]
49 #[unsafe(method_family = new)]
50 pub unsafe fn new() -> Retained<Self>;
51 );
52}