use crate::common::*;
use crate::AppKit::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::PhotoKit::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "PhotoKit_PHFetchOptions")]
pub struct PHFetchOptions;
#[cfg(feature = "PhotoKit_PHFetchOptions")]
unsafe impl ClassType for PHFetchOptions {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "PhotoKit_PHFetchOptions")]
unsafe impl NSCopying for PHFetchOptions {}
#[cfg(feature = "PhotoKit_PHFetchOptions")]
unsafe impl NSObjectProtocol for PHFetchOptions {}
extern_methods!(
#[cfg(feature = "PhotoKit_PHFetchOptions")]
unsafe impl PHFetchOptions {
#[cfg(feature = "Foundation_NSPredicate")]
#[method_id(@__retain_semantics Other predicate)]
pub unsafe fn predicate(&self) -> Option<Id<NSPredicate>>;
#[cfg(feature = "Foundation_NSPredicate")]
#[method(setPredicate:)]
pub unsafe fn setPredicate(&self, predicate: Option<&NSPredicate>);
#[cfg(all(
feature = "Foundation_NSArray",
feature = "Foundation_NSSortDescriptor"
))]
#[method_id(@__retain_semantics Other sortDescriptors)]
pub unsafe fn sortDescriptors(&self) -> Option<Id<NSArray<NSSortDescriptor>>>;
#[cfg(all(
feature = "Foundation_NSArray",
feature = "Foundation_NSSortDescriptor"
))]
#[method(setSortDescriptors:)]
pub unsafe fn setSortDescriptors(
&self,
sort_descriptors: Option<&NSArray<NSSortDescriptor>>,
);
#[method(includeHiddenAssets)]
pub unsafe fn includeHiddenAssets(&self) -> bool;
#[method(setIncludeHiddenAssets:)]
pub unsafe fn setIncludeHiddenAssets(&self, include_hidden_assets: bool);
#[method(includeAllBurstAssets)]
pub unsafe fn includeAllBurstAssets(&self) -> bool;
#[method(setIncludeAllBurstAssets:)]
pub unsafe fn setIncludeAllBurstAssets(&self, include_all_burst_assets: bool);
#[method(includeAssetSourceTypes)]
pub unsafe fn includeAssetSourceTypes(&self) -> PHAssetSourceType;
#[method(setIncludeAssetSourceTypes:)]
pub unsafe fn setIncludeAssetSourceTypes(
&self,
include_asset_source_types: PHAssetSourceType,
);
#[method(fetchLimit)]
pub unsafe fn fetchLimit(&self) -> NSUInteger;
#[method(setFetchLimit:)]
pub unsafe fn setFetchLimit(&self, fetch_limit: NSUInteger);
#[method(wantsIncrementalChangeDetails)]
pub unsafe fn wantsIncrementalChangeDetails(&self) -> bool;
#[method(setWantsIncrementalChangeDetails:)]
pub unsafe fn setWantsIncrementalChangeDetails(
&self,
wants_incremental_change_details: bool,
);
}
);
extern_methods!(
#[cfg(feature = "PhotoKit_PHFetchOptions")]
unsafe impl PHFetchOptions {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);