Class ALAssetsLibrary

  • All Implemented Interfaces:
    NSObject

    @Deprecated
    public class ALAssetsLibrary
    extends NSObject
    Deprecated.
    API-Since: 4.0 Deprecated-Since: 9.0 Deprecated-Message: Use PHPhotoLibrary from the Photos framework instead
    • Constructor Detail

      • ALAssetsLibrary

        protected ALAssetsLibrary​(org.moe.natj.general.Pointer peer)
        Deprecated.
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
        Deprecated.
      • allocWithZone

        public static ALAssetsLibrary allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Deprecated.
      • authorizationStatus

        @Deprecated
        public static long authorizationStatus()
        Deprecated.
        Returns photo data authorization status for this application API-Since: 6.0 Deprecated-Since: 9.0 Deprecated-Message: Use authorizationStatus on the shared PHPhotoLibrary from the Photos framework instead
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
        Deprecated.
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
        Deprecated.
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
        Deprecated.
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
        Deprecated.
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
        Deprecated.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
        Deprecated.
      • description_static

        public static java.lang.String description_static()
        Deprecated.
      • disableSharedPhotoStreamsSupport

        @Deprecated
        public static void disableSharedPhotoStreamsSupport()
        Deprecated.
        Disable retrieval and notifications for Shared Photo Streams API-Since: 6.0 Deprecated-Since: 9.0 Deprecated-Message: Use the Photos framework instead
      • hash_static

        public static long hash_static()
        Deprecated.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
        Deprecated.
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
        Deprecated.
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
        Deprecated.
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
        Deprecated.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
        Deprecated.
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
        Deprecated.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
        Deprecated.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
        Deprecated.
      • version_static

        public static long version_static()
        Deprecated.
      • addAssetsGroupAlbumWithNameResultBlockFailureBlock

        @Deprecated
        public void addAssetsGroupAlbumWithNameResultBlockFailureBlock​(java.lang.String name,
                                                                       ALAssetsLibrary.Block_addAssetsGroupAlbumWithNameResultBlockFailureBlock_1 resultBlock,
                                                                       ALAssetsLibrary.Block_addAssetsGroupAlbumWithNameResultBlockFailureBlock_2 failureBlock)
        Deprecated.
        Add a new ALAssetsGroup to the library. The name of the ALAssetsGroup is name and the type is ALAssetsGroupAlbum. The editable property of this ALAssetsGroup returns YES. If name conflicts with another ALAssetsGroup with the same name, then the group is not created and the result block returns a nil group. When the ALAssetsGroup is added, the user may be asked to confirm the application's access to the data. If the user denies access to the application or if no application is allowed to access the data, the failure block will be called. If the data is currently unavailable, the failure block will be called. API-Since: 5.0 Deprecated-Since: 9.0 Deprecated-Message: Use creationRequestForAssetCollectionWithTitle: on PHAssetCollectionChangeRequest from the Photos framework to create a new asset collection instead
      • assetForURLResultBlockFailureBlock

        @Deprecated
        public void assetForURLResultBlockFailureBlock​(NSURL assetURL,
                                                       ALAssetsLibrary.Block_assetForURLResultBlockFailureBlock_1 resultBlock,
                                                       ALAssetsLibrary.Block_assetForURLResultBlockFailureBlock_2 failureBlock)
        Deprecated.
        Returns an ALAsset object in the result block for a URL previously retrieved from an ALAsset object. When the ALAsset is requested, the user may be asked to confirm the application's access to the data. If the user denies access to the application or if no application is allowed to access the data, the failure block will be called. If the data is currently unavailable, the failure block will be called. API-Since: 4.0 Deprecated-Since: 9.0 Deprecated-Message: 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
      • enumerateGroupsWithTypesUsingBlockFailureBlock

        @Deprecated
        public void enumerateGroupsWithTypesUsingBlockFailureBlock​(long types,
                                                                   ALAssetsLibrary.Block_enumerateGroupsWithTypesUsingBlockFailureBlock_1 enumerationBlock,
                                                                   ALAssetsLibrary.Block_enumerateGroupsWithTypesUsingBlockFailureBlock_2 failureBlock)
        Deprecated.
        Get the list of groups that match the given types. Multiple types can be ORed together. The results are passed one by one to the caller by executing the enumeration block. When the enumeration is done, 'enumerationBlock' will be called with group set to nil. When groups are enumerated, the user may be asked to confirm the application's access to the data. If the user denies access to the application or if no application is allowed to access the data, the failure block will be called. If the data is currently unavailable, the failure block will be called. API-Since: 4.0 Deprecated-Since: 9.0 Deprecated-Message: Use the PHFetchResult returned by one of the fetch... methods on PHAssetCollection from the Photos framework to enumerate asset collections instead
      • groupForURLResultBlockFailureBlock

        @Deprecated
        public void groupForURLResultBlockFailureBlock​(NSURL groupURL,
                                                       ALAssetsLibrary.Block_groupForURLResultBlockFailureBlock_1 resultBlock,
                                                       ALAssetsLibrary.Block_groupForURLResultBlockFailureBlock_2 failureBlock)
        Deprecated.
        Returns an ALAssetsGroup object in the result block for a URL previously retrieved from an ALAssetsGroup object. When the ALAssetsGroup is requested, the user may be asked to confirm the application's access to the data. If the user denies access to the application or if no application is allowed to access the data, the failure block will be called. If the data is currently unavailable, the failure block will be called. API-Since: 5.0 Deprecated-Since: 9.0 Deprecated-Message: 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
      • videoAtPathIsCompatibleWithSavedPhotosAlbum

        @Deprecated
        public boolean videoAtPathIsCompatibleWithSavedPhotosAlbum​(NSURL videoPathURL)
        Deprecated.
        API-Since: 5.0 Deprecated-Since: 9.0 Deprecated-Message: Use isCompatibleWithSavedPhotosAlbum on AVAsset instead
      • writeImageDataToSavedPhotosAlbumMetadataCompletionBlock

        @Deprecated
        public void writeImageDataToSavedPhotosAlbumMetadataCompletionBlock​(NSData imageData,
                                                                            NSDictionary<?,​?> metadata,
                                                                            ALAssetsLibrary.Block_writeImageDataToSavedPhotosAlbumMetadataCompletionBlock completionBlock)
        Deprecated.
        If there is a conflict between the metadata in the image data and the metadata dictionary, the image data metadata values will be overwritten API-Since: 4.1 Deprecated-Since: 9.0 Deprecated-Message: Use creationRequestForAssetFromImageData: on PHAssetChangeRequest from the Photos framework to create a new asset instead
      • writeImageToSavedPhotosAlbumMetadataCompletionBlock

        @Deprecated
        public void writeImageToSavedPhotosAlbumMetadataCompletionBlock​(CGImageRef imageRef,
                                                                        NSDictionary<?,​?> metadata,
                                                                        ALAssetsLibrary.Block_writeImageToSavedPhotosAlbumMetadataCompletionBlock completionBlock)
        Deprecated.
        The API user will have to specify the orientation key in the metadata dictionary to preserve the orientation of the image API-Since: 4.1 Deprecated-Since: 9.0 Deprecated-Message: Use creationRequestForAssetFromImage: on PHAssetChangeRequest from the Photos framework to create a new asset instead
      • writeImageToSavedPhotosAlbumOrientationCompletionBlock

        @Deprecated
        public void writeImageToSavedPhotosAlbumOrientationCompletionBlock​(CGImageRef imageRef,
                                                                           long orientation,
                                                                           ALAssetsLibrary.Block_writeImageToSavedPhotosAlbumOrientationCompletionBlock completionBlock)
        Deprecated.
        With a UIImage, the API user can use -[UIImage CGImage] to get a CGImageRef, and cast -[UIImage imageOrientation] to ALAssetOrientation. API-Since: 4.0 Deprecated-Since: 9.0 Deprecated-Message: Use creationRequestForAssetFromImage: on PHAssetChangeRequest from the Photos framework to create a new asset instead
      • writeVideoAtPathToSavedPhotosAlbumCompletionBlock

        @Deprecated
        public void writeVideoAtPathToSavedPhotosAlbumCompletionBlock​(NSURL videoPathURL,
                                                                      ALAssetsLibrary.Block_writeVideoAtPathToSavedPhotosAlbumCompletionBlock completionBlock)
        Deprecated.
        API-Since: 4.0 Deprecated-Since: 9.0 Deprecated-Message: Use creationRequestForAssetFromVideoAtFilePath: on PHAssetChangeRequest from the Photos framework to create a new asset instead
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.