Class AssetsLibrary


  • public final class AssetsLibrary
    extends java.lang.Object
    • Method Detail

      • ALAssetsLibraryChangedNotification

        public static java.lang.String ALAssetsLibraryChangedNotification()
        This notification will be sent when the contents of the ALAssetsLibrary have changed from under the app that is using the data. The API user should retain the library object to receive this notification. The userInfo may include the keys listed below, which identify specific ALAssets or ALAssetGroups that have become invalid and should be discarded. The values are NSSets of NSURLs which match the ALAssetPropertyURL and ALAssetsGroupPropertyURL properties. If the userInfo is nil, all ALAssets and ALAssetGroups should be considered invalid and discarded. Modified ALAssets will be identified by the ALAssetLibraryUpdatedAssetsKey, but inserted or deleted ALAssets are identified by invalidating the containing ALAssetGroups.
      • ALAssetLibraryUpdatedAssetsKey

        public static java.lang.String ALAssetLibraryUpdatedAssetsKey()
      • ALAssetLibraryInsertedAssetGroupsKey

        public static java.lang.String ALAssetLibraryInsertedAssetGroupsKey()
      • ALAssetLibraryUpdatedAssetGroupsKey

        public static java.lang.String ALAssetLibraryUpdatedAssetGroupsKey()
      • ALAssetLibraryDeletedAssetGroupsKey

        public static java.lang.String ALAssetLibraryDeletedAssetGroupsKey()
      • ALAssetsLibraryErrorDomain

        public static java.lang.String ALAssetsLibraryErrorDomain()
        Constant used by NSError to distinguish errors belonging to the AssetsLibrary domain
      • ALErrorInvalidProperty

        public static java.lang.String ALErrorInvalidProperty()
      • ALAssetPropertyType

        public static java.lang.String ALAssetPropertyType()
        An NSString that encodes the type of asset. One of ALAssetTypePhoto, ALAssetTypeVideo or ALAssetTypeUnknown.
      • ALAssetPropertyLocation

        public static java.lang.String ALAssetPropertyLocation()
        CLLocation object with the location information of the asset. Only available if location services are enabled for the caller.
      • ALAssetPropertyDuration

        public static java.lang.String ALAssetPropertyDuration()
        Play time duration of a video asset expressed as a double wrapped in an NSNumber. For photos, kALErrorInvalidProperty is returned.
      • ALAssetPropertyOrientation

        public static java.lang.String ALAssetPropertyOrientation()
        NSNumber containing an asset's orientation as defined by ALAssetOrientation.
      • ALAssetPropertyDate

        public static java.lang.String ALAssetPropertyDate()
        An NSDate with the asset's creation date.
      • ALAssetPropertyRepresentations

        public static java.lang.String ALAssetPropertyRepresentations()
        Array with all the representations available for a given asset (e.g. RAW, JPEG). It is expressed as UTIs.
      • ALAssetPropertyURLs

        public static java.lang.String ALAssetPropertyURLs()
        Dictionary that maps asset representation UTIs to URLs that uniquely identify the asset.
      • ALAssetPropertyAssetURL

        public static java.lang.String ALAssetPropertyAssetURL()
        An NSURL that uniquely identifies the asset
      • ALAssetTypePhoto

        public static java.lang.String ALAssetTypePhoto()
        The asset is a photo
      • ALAssetTypeVideo

        public static java.lang.String ALAssetTypeVideo()
        The asset is a video
      • ALAssetTypeUnknown

        public static java.lang.String ALAssetTypeUnknown()
        The asset's type cannot be determined. It could be a sound file, a video or photo file that we don't know about, or something else. This is possible only for assets imported from a camera onto the device.
      • ALAssetsGroupPropertyName

        public static java.lang.String ALAssetsGroupPropertyName()
        An NSString with the name of the group
      • ALAssetsGroupPropertyType

        public static java.lang.String ALAssetsGroupPropertyType()
        An ALAssetsGroupType wrapped in an NSNumber
      • ALAssetsGroupPropertyPersistentID

        public static java.lang.String ALAssetsGroupPropertyPersistentID()
        An NSString with the group's persistent ID.
      • ALAssetsGroupPropertyURL

        public static java.lang.String ALAssetsGroupPropertyURL()
        An NSURL that uniquely identifies the group