Documentation Archive Developer
Search

MediaLibrary Changes for Objective-C

MediaLibrary

MLMediaGroup.h

Declaration
From
@property(readonly, copy) NSDictionary *attributes
To
@property(readonly, copy, nonnull) NSDictionary<NSString *,id> *attributes

Declaration
From
@property(readonly, copy) NSArray *childGroups
To
@property(readonly, copy, nullable) NSArray<MLMediaGroup *> *childGroups

Declaration
From
@property(readonly, copy) NSImage *iconImage
To
@property(readonly, copy, nullable) NSImage *iconImage

Declaration
From
@property(readonly, copy) NSString *identifier
To
@property(readonly, copy, nonnull) NSString *identifier

Declaration
From
@property(readonly, assign) MLMediaLibrary *mediaLibrary
To
@property(readonly, assign, nullable) MLMediaLibrary *mediaLibrary

Declaration
From
@property(readonly, copy) NSArray *mediaObjects
To
@property(readonly, copy, nullable) NSArray<MLMediaObject *> *mediaObjects

Declaration
From
@property(readonly, copy) NSString *mediaSourceIdentifier
To
@property(readonly, copy, nonnull) NSString *mediaSourceIdentifier

Declaration
From
@property(readonly, copy) NSDate *modificationDate
To
@property(readonly, copy, nullable) NSDate *modificationDate

Declaration
From
@property(readonly, copy) NSString *name
To
@property(readonly, copy, nullable) NSString *name

Declaration
From
@property(readonly, assign) MLMediaGroup *parent
To
@property(readonly, assign, nullable) MLMediaGroup *parent

Declaration
From
@property(readonly, copy) NSString *typeIdentifier
To
@property(readonly, copy, nonnull) NSString *typeIdentifier

Declaration
From
@property(readonly, copy) NSURL *URL
To
@property(readonly, copy, nullable) NSURL *URL

MLMediaLibrary.h

Declaration
From
- (instancetype)initWithOptions:(NSDictionary *)options
To
- (instancetype _Nonnull)initWithOptions:(NSDictionary<NSString *,id> * _Nonnull)options

Declaration
From
@property(readonly, copy) NSDictionary *mediaSources
To
@property(readonly, copy, nullable) NSDictionary<NSString *,MLMediaSource *> *mediaSources

MLMediaObject.h

Declaration
From
@property(readonly, copy) NSImage *artworkImage
To
@property(readonly, copy, nullable) NSImage *artworkImage

Declaration
From
@property(readonly, copy) NSDictionary *attributes
To
@property(readonly, copy, nonnull) NSDictionary<NSString *,id> *attributes

Declaration
From
@property(readonly, copy) NSString *contentType
To
@property(readonly, copy, nullable) NSString *contentType

Declaration
From
@property(readonly, copy) NSString *identifier
To
@property(readonly, copy, nonnull) NSString *identifier

Declaration
From
@property(readonly, assign) MLMediaLibrary *mediaLibrary
To
@property(readonly, assign, nullable) MLMediaLibrary *mediaLibrary

Declaration
From
@property(readonly, copy) NSString *mediaSourceIdentifier
To
@property(readonly, copy, nonnull) NSString *mediaSourceIdentifier

Declaration
From
@property(readonly, copy) NSDate *modificationDate
To
@property(readonly, copy, nullable) NSDate *modificationDate

Declaration
From
@property(readonly, copy) NSString *name
To
@property(readonly, copy, nullable) NSString *name

Declaration
From
@property(readonly, copy) NSURL *originalURL
To
@property(readonly, copy, nullable) NSURL *originalURL

Declaration
From
@property(readonly, copy) NSURL *thumbnailURL
To
@property(readonly, copy, nullable) NSURL *thumbnailURL

Declaration
From
@property(readonly, copy) NSURL *URL
To
@property(readonly, copy, nullable) NSURL *URL

MLMediaSource.h

Declaration
From
@property(readonly, copy) NSDictionary *attributes
To
@property(readonly, copy, nonnull) NSDictionary<NSString *,id> *attributes

Declaration
From
- (MLMediaGroup *)mediaGroupForIdentifier:(NSString *)mediaGroupIdentifier
To
- (MLMediaGroup * _Nullable)mediaGroupForIdentifier:(NSString * _Nonnull)mediaGroupIdentifier

Declaration
From
- (NSDictionary *)mediaGroupsForIdentifiers:(NSArray *)mediaGroupIdentifiers
To
- (NSDictionary<NSString *,MLMediaGroup *> * _Nonnull)mediaGroupsForIdentifiers:(NSArray<NSString *> * _Nonnull)mediaGroupIdentifiers

Declaration
From
@property(readonly, assign) MLMediaLibrary *mediaLibrary
To
@property(readonly, assign, nullable) MLMediaLibrary *mediaLibrary

Declaration
From
- (MLMediaObject *)mediaObjectForIdentifier:(NSString *)mediaObjectIdentifier
To
- (MLMediaObject * _Nullable)mediaObjectForIdentifier:(NSString * _Nonnull)mediaObjectIdentifier

Declaration
From
- (NSDictionary *)mediaObjectsForIdentifiers:(NSArray *)mediaObjectIdentifiers
To
- (NSDictionary<NSString *,MLMediaObject *> * _Nonnull)mediaObjectsForIdentifiers:(NSArray<NSString *> * _Nonnull)mediaObjectIdentifiers

Declaration
From
@property(readonly, copy) NSString *mediaSourceIdentifier
To
@property(readonly, copy, nonnull) NSString *mediaSourceIdentifier

Declaration
From
@property(readonly, retain) MLMediaGroup *rootMediaGroup
To
@property(readonly, retain, nullable) MLMediaGroup *rootMediaGroup

MLMediaTypes.h