#if !__has_include() /* File: AVAssetCache.h Framework: AVFoundation Copyright 2016 Apple Inc. All rights reserved. */ #import #import NS_ASSUME_NONNULL_BEGIN @class AVMediaSelectionGroup; @class AVMediaSelectionOption; /*! @class AVAssetCache @abstract AVAssetCache is a class vended by an AVAsset used for the inspection of locally available media data. @discussion AVAssetCaches are vended by AVURLAsset's assetCache property. */ API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0)) API_UNAVAILABLE(watchos) @interface AVAssetCache : NSObject /* @property playableOffline @abstract Returns YES if a complete rendition of an AVAsset is available to be played without a network connection. @discussion An answer of YES does not indicate that any given media selection is available for offline playback. To determine if a specific media selection is available offline, see mediaSelectionOptionsInMediaSelectionGroup:. */ @property (nonatomic, readonly, getter=isPlayableOffline) BOOL playableOffline; /* @method mediaSelectionOptionsInMediaSelectionGroup: @abstract Returns an array of AVMediaSelectionOptions in an AVMediaSelectionGroup that are available for offline operations, e.g. playback. */ - (NSArray *)mediaSelectionOptionsInMediaSelectionGroup:(AVMediaSelectionGroup *)mediaSelectionGroup; AV_INIT_UNAVAILABLE @end NS_ASSUME_NONNULL_END #else #import #endif