AssetsLibrary Changes for Swift
AssetsLibrary
Modified ALAsset
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAsset.editable
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAsset.originalAsset
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAsset.setVideoAtPath(_: NSURL!, completionBlock: ALAssetsLibraryWriteVideoCompletionBlock!)
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetOrientation [enum]
| Introduction | Deprecation | Raw Value Type | |
|---|---|---|---|
| From | iOS 8.1 | -- | -- |
| To | iOS 4.0 | iOS 9.0 | Int |
Modified ALAssetOrientation.Down
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetOrientation.DownMirrored
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetOrientation.Left
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetOrientation.LeftMirrored
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetOrientation.Right
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetOrientation.RightMirrored
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetOrientation.Up
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetOrientation.UpMirrored
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetRepresentation
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetRepresentation.CGImageWithOptions(_: [NSObject : AnyObject]!) -> Unmanaged<CGImage>!
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetsFilter
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetsGroup
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetsGroup.editable
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetsLibrary
| Declaration | Deprecation | |
|---|---|---|
| From | class ALAssetsLibrary : NSObject {
func enumerateGroupsWithTypes(_ types: ALAssetsGroupType, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
func assetForURL(_ assetURL: NSURL!, resultBlock resultBlock: ALAssetsLibraryAssetForURLResultBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
func groupForURL(_ groupURL: NSURL!, resultBlock resultBlock: ALAssetsLibraryGroupResultBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
func addAssetsGroupAlbumWithName(_ name: String!, resultBlock resultBlock: ALAssetsLibraryGroupResultBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
func writeImageToSavedPhotosAlbum(_ imageRef: CGImage!, orientation orientation: ALAssetOrientation, completionBlock completionBlock: ALAssetsLibraryWriteImageCompletionBlock!)
func writeImageToSavedPhotosAlbum(_ imageRef: CGImage!, metadata metadata: [NSObject : AnyObject]!, completionBlock completionBlock: ALAssetsLibraryWriteImageCompletionBlock!)
func writeImageDataToSavedPhotosAlbum(_ imageData: NSData!, metadata metadata: [NSObject : AnyObject]!, completionBlock completionBlock: ALAssetsLibraryWriteImageCompletionBlock!)
func writeVideoAtPathToSavedPhotosAlbum(_ videoPathURL: NSURL!, completionBlock completionBlock: ALAssetsLibraryWriteVideoCompletionBlock!)
func videoAtPathIsCompatibleWithSavedPhotosAlbum(_ videoPathURL: NSURL!) -> Bool
class func authorizationStatus() -> ALAuthorizationStatus
class func disableSharedPhotoStreamsSupport()
}
extension ALAssetsLibrary {
func enumerateGroupsWithTypes(_ types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
}
extension ALAssetsLibrary {
func enumerateGroupsWithTypes(_ types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
} | -- |
| To | class ALAssetsLibrary : NSObject {
func enumerateGroupsWithTypes(_ types: ALAssetsGroupType, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
func assetForURL(_ assetURL: NSURL!, resultBlock resultBlock: ALAssetsLibraryAssetForURLResultBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
func groupForURL(_ groupURL: NSURL!, resultBlock resultBlock: ALAssetsLibraryGroupResultBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
func addAssetsGroupAlbumWithName(_ name: String!, resultBlock resultBlock: ALAssetsLibraryGroupResultBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
func writeImageToSavedPhotosAlbum(_ imageRef: CGImage!, orientation orientation: ALAssetOrientation, completionBlock completionBlock: ALAssetsLibraryWriteImageCompletionBlock!)
func writeImageToSavedPhotosAlbum(_ imageRef: CGImage!, metadata metadata: [NSObject : AnyObject]!, completionBlock completionBlock: ALAssetsLibraryWriteImageCompletionBlock!)
func writeImageDataToSavedPhotosAlbum(_ imageData: NSData!, metadata metadata: [NSObject : AnyObject]!, completionBlock completionBlock: ALAssetsLibraryWriteImageCompletionBlock!)
func writeVideoAtPathToSavedPhotosAlbum(_ videoPathURL: NSURL!, completionBlock completionBlock: ALAssetsLibraryWriteVideoCompletionBlock!)
func videoAtPathIsCompatibleWithSavedPhotosAlbum(_ videoPathURL: NSURL!) -> Bool
class func authorizationStatus() -> ALAuthorizationStatus
class func disableSharedPhotoStreamsSupport()
}
extension ALAssetsLibrary {
@nonobjc func enumerateGroupsWithTypes(_ types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
}
extension ALAssetsLibrary {
@nonobjc func enumerateGroupsWithTypes(_ types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
} | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetsLibrary.enumerateGroupsWithTypes(_: UInt32, usingBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock: ALAssetsLibraryAccessFailureBlock!)
| Declaration | Introduction | |
|---|---|---|
| From | func enumerateGroupsWithTypes(_ types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!) | iOS 8.1 |
| To | @nonobjc func enumerateGroupsWithTypes(_ types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!) | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 5.0 | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAuthorizationStatus [enum]
| Deprecation | Raw Value Type | |
|---|---|---|
| From | -- | -- |
| To | iOS 9.0 | Int |
Modified ALAuthorizationStatus.Authorized
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 6.0 | iOS 9.0 |
Modified ALAuthorizationStatus.Denied
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 6.0 | iOS 9.0 |
Modified ALAuthorizationStatus.NotDetermined
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 6.0 | iOS 9.0 |
Modified ALAuthorizationStatus.Restricted
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 6.0 | iOS 9.0 |
Modified ALAssetLibraryDeletedAssetGroupsKey
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetLibraryInsertedAssetGroupsKey
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetLibraryUpdatedAssetGroupsKey
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetLibraryUpdatedAssetsKey
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetPropertyAssetURL
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 6.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetPropertyDate
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetPropertyDuration
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetPropertyLocation
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetPropertyOrientation
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetPropertyRepresentations
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetPropertyType
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetPropertyURLs
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetsGroupAlbum
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetsGroupAll
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetsGroupEnumerationResultsBlock
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetsGroupEvent
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetsGroupFaces
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetsGroupLibrary
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetsGroupPhotoStream
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 5.0 | iOS 9.0 |
Modified ALAssetsGroupPropertyName
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetsGroupPropertyPersistentID
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetsGroupPropertyType
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetsGroupPropertyURL
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetsGroupSavedPhotos
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetsGroupType
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetsLibraryAccessFailureBlock
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetsLibraryChangedNotification
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetsLibraryErrorDomain
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetsLibraryGroupResultBlock
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
| Introduction | Deprecation | |
|---|---|---|
| From | iOS 8.0 | -- |
| To | iOS 4.0 | iOS 9.0 |
Modified ALAssetTypePhoto
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetTypeUnknown
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALAssetTypeVideo
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |
Modified ALErrorInvalidProperty
| Deprecation | |
|---|---|
| From | -- |
| To | iOS 9.0 |