objc2_av_foundation/generated/
AVAssetCache.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    /// AVAssetCache is a class vended by an AVAsset used for the inspection of locally available media data.
11    ///
12    ///
13    /// AVAssetCaches are vended by AVURLAsset's assetCache property.
14    ///
15    /// Subclasses of this type that are used from Swift must fulfill the requirements of a Sendable type.
16    ///
17    /// See also [Apple's documentation](https://developer.apple.com/documentation/avfoundation/avassetcache?language=objc)
18    #[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}