objc2_av_foundation/generated/
AVAssetCache.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
19 #[derive(Debug, PartialEq, Eq, Hash)]
20 pub struct AVAssetCache;
21);
22
23unsafe impl Send for AVAssetCache {}
24
25unsafe impl Sync for AVAssetCache {}
26
27extern_conformance!(
28 unsafe impl NSObjectProtocol for AVAssetCache {}
29);
30
31impl AVAssetCache {
32 extern_methods!(
33 #[unsafe(method(isPlayableOffline))]
34 #[unsafe(method_family = none)]
35 pub unsafe fn isPlayableOffline(&self) -> bool;
36
37 #[cfg(feature = "AVMediaSelectionGroup")]
38 #[unsafe(method(mediaSelectionOptionsInMediaSelectionGroup:))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn mediaSelectionOptionsInMediaSelectionGroup(
41 &self,
42 media_selection_group: &AVMediaSelectionGroup,
43 ) -> Retained<NSArray<AVMediaSelectionOption>>;
44
45 #[unsafe(method(init))]
46 #[unsafe(method_family = init)]
47 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
48
49 #[unsafe(method(new))]
50 #[unsafe(method_family = new)]
51 pub unsafe fn new() -> Retained<Self>;
52 );
53}