UIDocumentPickerExtensionViewController.h


#if USE_UIKIT_PUBLIC_HEADERS || !__has_include()
//
//  UIDocumentPickerExtensionViewController.h
//  UIKit
//
//  Copyright (c) 2014-2018 Apple Inc. All rights reserved.
//

#import 
#import 
#import 

NS_ASSUME_NONNULL_BEGIN





#pragma mark - 文档选择控制器扩展 Class
#pragma mark
/*
 概述
    - UIDocumentPickerViewController的扩展控制器
 */
NS_CLASS_AVAILABLE_IOS(8_0)  __TVOS_PROHIBITED @interface UIDocumentPickerExtensionViewController : UIViewController

// 解除指定URL路径文件的访问权限
- (void)dismissGrantingAccessToURL:(nullable NSURL *)url;
// 自定义文档选择控制器的模型
- (void)prepareForPresentationInMode:(UIDocumentPickerMode)mode;

/// 文档选择控制器的模型
@property (nonatomic, readonly, assign) UIDocumentPickerMode documentPickerMode;
/// 要被复制文件的URL路径(UIDocumentPickerModeExportToService模式下有,否则为nil)
@property (nullable, nonatomic, readonly, copy) NSURL *originalURL;
/// 有效类型标识符(UIDocumentPickerModeImport或UIDocumentPickerModeOpen模式下有,否则为nil)
@property (nullable, nonatomic, readonly, copy) NSArray *validTypes;
/// 提供者标识符
@property (nonatomic, readonly, copy) NSString *providerIdentifier;
/// 文档储存URL(默认情况下,此属性保存通过调用File Provider扩展的documentStorageURL方法返回的值)
@property (nullable, nonatomic, readonly, copy) NSURL *documentStorageURL;

@end





NS_ASSUME_NONNULL_END

#else
#import 
#endif

你可能感兴趣的:(UIDocumentPickerExtensionViewController.h)