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
27unsafe impl NSObjectProtocol for AVAssetCache {}
28
29impl AVAssetCache {
30 extern_methods!(
31 #[unsafe(method(isPlayableOffline))]
32 #[unsafe(method_family = none)]
33 pub unsafe fn isPlayableOffline(&self) -> bool;
34
35 #[cfg(feature = "AVMediaSelectionGroup")]
36 #[unsafe(method(mediaSelectionOptionsInMediaSelectionGroup:))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn mediaSelectionOptionsInMediaSelectionGroup(
39 &self,
40 media_selection_group: &AVMediaSelectionGroup,
41 ) -> Retained<NSArray<AVMediaSelectionOption>>;
42
43 #[unsafe(method(init))]
44 #[unsafe(method_family = init)]
45 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
46
47 #[unsafe(method(new))]
48 #[unsafe(method_family = new)]
49 pub unsafe fn new() -> Retained<Self>;
50 );
51}