Package org.robovm.apple.mediaplayer
Class MPMediaLibrary
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.mediaplayer.MPMediaLibrary
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class MPMediaLibrary extends NSObject implements NSSecureCoding
- Since:
- Available in iOS 3.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MPMediaLibrary.MPMediaLibraryPtr
static class
MPMediaLibrary.Notifications
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description MPMediaLibrary()
MPMediaLibrary(NSCoder decoder)
protected
MPMediaLibrary(NSObject.Handle h, long handle)
protected
MPMediaLibrary(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItemWithProductID(java.lang.String productID, org.robovm.objc.block.VoidBlock2<NSArray<MPMediaEntity>,NSError> completionHandler)
static MPMediaLibraryAuthorizationStatus
authorizationStatus()
void
beginGeneratingLibraryChangeNotifications()
static NSString
DidChangeNotification()
void
encode(NSCoder coder)
void
endGeneratingLibraryChangeNotifications()
static MPMediaLibrary
getDefaultMediaLibrary()
NSDate
getLastModifiedDate()
void
getPlaylistWithUUID(NSUUID uuid, MPMediaPlaylistCreationMetadata creationMetadata, org.robovm.objc.block.VoidBlock2<MPMediaPlaylist,NSError> completionHandler)
protected long
init(NSCoder decoder)
static void
requestAuthorization(org.robovm.objc.block.VoidBlock1<MPMediaLibraryAuthorizationStatus> handler)
static boolean
supportsSecureCoding()
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
MPMediaLibrary
public MPMediaLibrary()
-
MPMediaLibrary
protected MPMediaLibrary(NSObject.Handle h, long handle)
-
MPMediaLibrary
protected MPMediaLibrary(NSObject.SkipInit skipInit)
-
MPMediaLibrary
public MPMediaLibrary(NSCoder decoder)
-
-
Method Detail
-
getLastModifiedDate
public NSDate getLastModifiedDate()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
DidChangeNotification
public static NSString DidChangeNotification()
-
beginGeneratingLibraryChangeNotifications
public void beginGeneratingLibraryChangeNotifications()
-
endGeneratingLibraryChangeNotifications
public void endGeneratingLibraryChangeNotifications()
-
addItemWithProductID
public void addItemWithProductID(java.lang.String productID, org.robovm.objc.block.VoidBlock2<NSArray<MPMediaEntity>,NSError> completionHandler)
- Since:
- Available in iOS 9.3 and later.
-
getPlaylistWithUUID
public void getPlaylistWithUUID(NSUUID uuid, MPMediaPlaylistCreationMetadata creationMetadata, org.robovm.objc.block.VoidBlock2<MPMediaPlaylist,NSError> completionHandler)
- Since:
- Available in iOS 9.3 and later.
-
getDefaultMediaLibrary
public static MPMediaLibrary getDefaultMediaLibrary()
-
authorizationStatus
public static MPMediaLibraryAuthorizationStatus authorizationStatus()
- Since:
- Available in iOS 9.3 and later.
-
requestAuthorization
public static void requestAuthorization(org.robovm.objc.block.VoidBlock1<MPMediaLibraryAuthorizationStatus> handler)
- Since:
- Available in iOS 9.3 and later.
-
init
protected long init(NSCoder decoder)
-
-