VLCMediaSubcategory+VLCDragAndDrop.swift 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*****************************************************************************
  2. * VLCMediaSubcategory+VLCDragAndDrop.swift
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2017 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Carola Nitz <caro # videolan.org>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. import Foundation
  13. //@available(iOS 11.0, *)
  14. //extension MediaLibraryBaseModel: VLCDragAndDropManagerDelegate {
  15. //
  16. // func dragAndDropManagerRequestsFile(manager: NSObject, atIndexPath indexPath: IndexPath) -> Any? {
  17. // return files[indexPath.row]
  18. // }
  19. //
  20. // func dragAndDropManagerInsertItem(manager: NSObject, item: NSManagedObject, atIndexPath indexPath: IndexPath) {
  21. // if item as? MLLabel != nil && indexPath.row < files.count {
  22. // files.remove(at: indexPath.row)
  23. // }
  24. // // TODO: handle insertion
  25. // //files.insert(item, at: indexPath.row)
  26. // }
  27. //
  28. // func dragAndDropManagerDeleteItem(manager: NSObject, atIndexPath indexPath: IndexPath) {
  29. // files.remove(at: indexPath.row)
  30. // }
  31. //
  32. // func dragAndDropManagerCurrentSelection(manager: NSObject) -> AnyObject? {
  33. //
  34. // //TODO: Handle playlists and Collections
  35. // fatalError()
  36. // }
  37. //
  38. // func dragAndDropManagerRemoveFileFromFolder(manager: NSObject, file: NSManagedObject) {
  39. // //TODO: handle removing from playlists and Collections
  40. // fatalError()
  41. // }
  42. //}