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
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}