/** * @since Available in iOS 9.0 and later. */ public static NSObject observeChapterMetadataGroupsDidChange(AVAsset object, final VoidBlock1<AVAsset> block) { return NSNotificationCenter.getDefaultCenter().addObserver(ChapterMetadataGroupsDidChangeNotification(), object, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke(NSNotification notification) { block.invoke((AVAsset) notification.getObject()); } }); } /**
/** * @since Available in iOS 9.0 and later. */ public static NSObject observeDurationDidChange(AVAsset object, final VoidBlock1<AVAsset> block) { return NSNotificationCenter.getDefaultCenter().addObserver(DurationDidChangeNotification(), object, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke(NSNotification notification) { block.invoke((AVAsset) notification.getObject()); } }); } /**
/** * @since Available in iOS 9.0 and later. */ public static NSObject observeMediaSelectionGroupsDidChange(AVAsset object, final VoidBlock1<AVAsset> block) { return NSNotificationCenter.getDefaultCenter().addObserver(MediaSelectionGroupsDidChangeNotification(), object, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke(NSNotification notification) { block.invoke((AVAsset) notification.getObject()); } }); } }
/** * * @param key * @return * @throws NSErrorException */ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorException { NSError.NSErrorPtr err = new NSError.NSErrorPtr(); AVKeyValueStatus result = getStatusOfValue(key, err); if (err.get() != null) { throw new NSErrorException(err.get()); } return result; } /*<methods>*/
/** * * @param key * @return * @throws NSErrorException */ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorException { NSError.NSErrorPtr err = new NSError.NSErrorPtr(); AVKeyValueStatus result = getStatusOfValue(key, err); if (err.get() != null) { throw new NSErrorException(err.get()); } return result; } /*<methods>*/
/** * @since Available in iOS 9.0 and later. */ public static NSObject observeDurationDidChange(AVAsset object, final VoidBlock1<AVAsset> block) { return NSNotificationCenter.getDefaultCenter().addObserver(DurationDidChangeNotification(), object, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke(NSNotification notification) { block.invoke((AVAsset) notification.getObject()); } }); } /**
/** * @since Available in iOS 9.0 and later. */ public static NSObject observeChapterMetadataGroupsDidChange(AVAsset object, final VoidBlock1<AVAsset> block) { return NSNotificationCenter.getDefaultCenter().addObserver(ChapterMetadataGroupsDidChangeNotification(), object, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke(NSNotification notification) { block.invoke((AVAsset) notification.getObject()); } }); } /**
/** * @since Available in iOS 9.0 and later. */ public static NSObject observeMediaSelectionGroupsDidChange(AVAsset object, final VoidBlock1<AVAsset> block) { return NSNotificationCenter.getDefaultCenter().addObserver(MediaSelectionGroupsDidChangeNotification(), object, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke(NSNotification notification) { block.invoke((AVAsset) notification.getObject()); } }); } }
/** * * @param key * @return * @throws NSErrorException */ public AVKeyValueStatus getStatusOfValue(AVMetadataKey key) throws NSErrorException { NSError.NSErrorPtr err = new NSError.NSErrorPtr(); AVKeyValueStatus result = getStatusOfValue(key, err); if (err.get() != null) { throw new NSErrorException(err.get()); } return result; } /*<methods>*/
/** * @since Available in iOS 9.0 and later. */ public static NSObject observeDurationDidChange(AVAsset object, final VoidBlock1<AVAsset> block) { return NSNotificationCenter.getDefaultCenter().addObserver(DurationDidChangeNotification(), object, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke(NSNotification notification) { block.invoke((AVAsset) notification.getObject()); } }); } /**
/** * @since Available in iOS 9.0 and later. */ public static NSObject observeChapterMetadataGroupsDidChange(AVAsset object, final VoidBlock1<AVAsset> block) { return NSNotificationCenter.getDefaultCenter().addObserver(ChapterMetadataGroupsDidChangeNotification(), object, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke(NSNotification notification) { block.invoke((AVAsset) notification.getObject()); } }); } /**
/** * @since Available in iOS 9.0 and later. */ public static NSObject observeMediaSelectionGroupsDidChange(AVAsset object, final VoidBlock1<AVAsset> block) { return NSNotificationCenter.getDefaultCenter().addObserver(MediaSelectionGroupsDidChangeNotification(), object, NSOperationQueue.getMainQueue(), new VoidBlock1<NSNotification>() { @Override public void invoke(NSNotification notification) { block.invoke((AVAsset) notification.getObject()); } }); } }