Skip to content

gzkiwiinc/DJIFileManager

Repository files navigation

DJIFileManager

iOS 9.0+ Swift 5.0 MIT

DJIFileManager 是一个基于 DJI-SDK-iOSDJISDKExtension 的简单媒体文件管理工具。它提供了缩略图浏览界面,单张预览图浏览,媒体文件信息查看,以及下载分享等功能。

DJIFileManager is a simple media files manager for DJI product. It's base on DJI-SDK-iOS and DJISDKExtension. DJIFileManager provides thumbnail browsing, single preview browsing, media file information, as well as download and share functions, etc.

Features

  • 缩略图浏览,分段加载。
  • 单张预览图查看和分享。
  • 多选下载,保存图片或视频文件到系统相册。
  • 默认提供黑色和白色主题。

ScreenShot

加载缩略图 查看预览图及删除操作

Requirements

  • iOS 9.0+
  • Swift 5.0

Installation

DJIFileManager is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'DJIFileManager'

Usage

import DJIFileManager

// DJIFileManagerLightTheme or DJIFileManagerDarkTheme
let theme: DJIFileManagerTheme.Type = DJIFileManagerLightTheme.self
let mediaFilesViewController = DJIMediaFilesViewController(style: theme)
navigationController?.pushViewController(mediaFilesViewController, animated: true)

本项目提供了 FileManagerExample 作为例子,运行起来后,点击 connect 连接无人机,当顶部状态显示 Acivated 和 Bound 即可点击 DJIFileManager 进入。

License

DJIFileManager is available under the MIT license. See the LICENSE file for more info.