Class ALAssetsLibrary

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

@Deprecated
public class ALAssetsLibrary
extends NSObject
Deprecated.
Deprecated in iOS 9.0. Use PHPhotoLibrary from the Photos framework instead
  • Constructor Details

    • ALAssetsLibrary

      public ALAssetsLibrary()
      Deprecated.
    • ALAssetsLibrary

      protected ALAssetsLibrary​(NSObject.Handle h, long handle)
      Deprecated.
    • ALAssetsLibrary

      protected ALAssetsLibrary​(NSObject.SkipInit skipInit)
      Deprecated.
  • Method Details

    • ChangedNotification

      @Deprecated public static NSString ChangedNotification()
      Deprecated.
      Deprecated in iOS 9.0. Use photoLibraryDidChange: notification from the Photos framework instead
    • enumerateGroups

      @Deprecated public void enumerateGroups​(ALAssetsGroupType types, VoidBlock2<ALAssetsGroup,​BooleanPtr> enumerationBlock, VoidBlock1<NSError> failureBlock)
      Deprecated.
      Deprecated in iOS 9.0. Use the PHFetchResult returned by one of the fetch... methods on PHAssetCollection from the Photos framework to enumerate asset collections instead
    • getAsset

      @Deprecated public void getAsset​(NSURL assetURL, VoidBlock1<ALAsset> resultBlock, VoidBlock1<NSError> failureBlock)
      Deprecated.
      Deprecated in iOS 9.0. Use fetchAssetsWithLocalIdentifiers:options: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use fetchAssetsWithALAssetURLs:options:) from the Photos framework instead
    • getGroup

      @Deprecated public void getGroup​(NSURL groupURL, VoidBlock1<ALAssetsGroup> resultBlock, VoidBlock1<NSError> failureBlock)
      Deprecated.
      Deprecated in iOS 9.0. Use fetchAssetCollectionsWithLocalIdentifiers:options: on PHAssetCollection to fetch the asset collections by local identifier (or to lookup PHAssetCollections by a previously known ALAssetsGroupPropertyURL use fetchAssetCollectionsWithALAssetGroupURLs:options:) from the Photos framework instead
    • addAssetsGroupAlbum

      @Deprecated public void addAssetsGroupAlbum​(String name, VoidBlock1<ALAssetsGroup> resultBlock, VoidBlock1<NSError> failureBlock)
      Deprecated.
      Deprecated in iOS 9.0. Use creationRequestForAssetCollectionWithTitle: on PHAssetCollectionChangeRequest from the Photos framework to create a new asset collection instead
    • writeImageToSavedPhotosAlbum

      @Deprecated public void writeImageToSavedPhotosAlbum​(CGImage imageRef, ALAssetOrientation orientation, VoidBlock2<NSURL,​NSError> completionBlock)
      Deprecated.
      Deprecated in iOS 9.0. Use creationRequestForAssetFromImage: on PHAssetChangeRequest from the Photos framework to create a new asset instead
    • writeImageToSavedPhotosAlbum

      @Deprecated public void writeImageToSavedPhotosAlbum​(CGImage imageRef, CGImageProperties metadata, VoidBlock2<NSURL,​NSError> completionBlock)
      Deprecated.
      Deprecated in iOS 9.0. Use creationRequestForAssetFromImage: on PHAssetChangeRequest from the Photos framework to create a new asset instead
    • writeImageDataToSavedPhotosAlbum

      @Deprecated public void writeImageDataToSavedPhotosAlbum​(NSData imageData, CGImageProperties metadata, VoidBlock2<NSURL,​NSError> completionBlock)
      Deprecated.
      Deprecated in iOS 9.0. Use creationRequestForAssetFromImageData: on PHAssetChangeRequest from the Photos framework to create a new asset instead
    • writeVideoToSavedPhotosAlbum

      @Deprecated public void writeVideoToSavedPhotosAlbum​(NSURL videoPathURL, VoidBlock2<NSURL,​NSError> completionBlock)
      Deprecated.
      Deprecated in iOS 9.0. Use creationRequestForAssetFromVideoAtFilePath: on PHAssetChangeRequest from the Photos framework to create a new asset instead
    • isVideoCompatibleWithSavedPhotosAlbum

      @Deprecated public boolean isVideoCompatibleWithSavedPhotosAlbum​(NSURL videoPathURL)
      Deprecated.
      Deprecated in iOS 9.0. Use isCompatibleWithSavedPhotosAlbum on AVAsset instead
    • getAuthorizationStatus

      @Deprecated public static ALAuthorizationStatus getAuthorizationStatus()
      Deprecated.
      Deprecated in iOS 9.0. Use authorizationStatus on the shared PHPhotoLibrary from the Photos framework instead
    • disableSharedPhotoStreamsSupport

      @Deprecated public static void disableSharedPhotoStreamsSupport()
      Deprecated.
      Deprecated in iOS 9.0. Use the Photos framework instead