MediaPlayer Changes for Swift
MediaPlayer
Added MPError [struct]
Added MPError.init(_nsError: NSError)
Added MPError.notFound
Added MPError.notSupported
Added MPError.permissionDenied
Added MPError.unknown
Added MPMediaItemArtwork
Added MPRepeatType [enum]
Added MPRepeatType.all
Added MPRepeatType.off
Added MPRepeatType.one
Added MPShuffleType [enum]
Added MPShuffleType.items
Added MPShuffleType.off
Modified MPChangeLanguageOptionCommandEvent
Declaration | |
---|---|
From | class MPChangeLanguageOptionCommandEvent : MPRemoteCommandEvent { var languageOption: MPNowPlayingInfoLanguageOption { get } } |
To | class MPChangeLanguageOptionCommandEvent : MPRemoteCommandEvent { var languageOption: MPNowPlayingInfoLanguageOption { get } var setting: MPChangeLanguageOptionSetting { get } } |
Modified MPChangePlaybackPositionCommandEvent
Declaration | |
---|---|
From | class MPChangePlaybackPositionCommandEvent : MPRemoteCommandEvent { var positionTime: NSTimeInterval { get } } |
To | class MPChangePlaybackPositionCommandEvent : MPRemoteCommandEvent { var positionTime: TimeInterval { get } } |
Declaration | |
---|---|
From | var positionTime: NSTimeInterval { get } |
To | var positionTime: TimeInterval { get } |
Modified MPContentItem
Declaration | Protocols | |
---|---|---|
From | class MPContentItem : NSObject { init(identifier identifier: String) var identifier: String { get } var title: String? var subtitle: String? var artwork: MPMediaItemArtwork? var container: Bool var playable: Bool var playbackProgress: Float } | -- |
To | class MPContentItem : NSObject { init(identifier identifier: String) var identifier: String { get } var title: String? var subtitle: String? var artwork: MPMediaItemArtwork? var playbackProgress: Float var isStreamingContent: Bool var isExplicitContent: Bool var isContainer: Bool var isPlayable: Bool func awakeFromNib() func prepareForInterfaceBuilder() func accessibilityActivate() -> Bool func accessibilityIncrement() func accessibilityDecrement() func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool func accessibilityPerformEscape() -> Bool func accessibilityPerformMagicTap() -> Bool var accessibilityCustomActions: [UIAccessibilityCustomAction]? func accessibilityElementDidBecomeFocused() func accessibilityElementDidLoseFocus() func accessibilityElementIsFocused() -> Bool func accessibilityAssistiveTechnologyFocusedIdentifiers() -> Set<String>? func accessibilityElementCount() -> Int func accessibilityElement(at index: Int) -> Any? func index(ofAccessibilityElement element: Any) -> Int var accessibilityElements: [Any]? var isAccessibilityElement: Bool var accessibilityLabel: String? var accessibilityHint: String? var accessibilityValue: String? var accessibilityTraits: UIAccessibilityTraits var accessibilityFrame: CGRect @NSCopying var accessibilityPath: UIBezierPath? var accessibilityActivationPoint: CGPoint var accessibilityLanguage: String? var accessibilityElementsHidden: Bool var accessibilityViewIsModal: Bool var shouldGroupAccessibilityChildren: Bool var accessibilityNavigationStyle: UIAccessibilityNavigationStyle var accessibilityHeaderElements: [Any]? var accessibilityCustomRotors: [UIAccessibilityCustomRotor]? func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool) func performSelector(inBackground aSelector: Selector, with arg: Any?) class func classForKeyedUnarchiver() -> AnyClass var classForKeyedArchiver: AnyClass? { get } func replacementObject(for archiver: NSKeyedArchiver) -> Any? class func classFallbacksForKeyedArchiver() -> [String] class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String> class func automaticallyNotifiesObservers(forKey key: String) -> Bool var observationInfo: UnsafeMutableRawPointer? func willChangeValue(forKey key: String) func didChangeValue(forKey key: String) func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String) func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?) class var accessInstanceVariablesDirectly: Bool { get } func value(forKey key: String) -> Any? func setValue(_ value: Any?, forKey key: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws func mutableArrayValue(forKey key: String) -> NSMutableArray func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet func mutableSetValue(forKey key: String) -> NSMutableSet func value(forKeyPath keyPath: String) -> Any? func setValue(_ value: Any?, forKeyPath keyPath: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet func value(forUndefinedKey key: String) -> Any? func setValue(_ value: Any?, forUndefinedKey key: String) func setNilValueForKey(_ key: String) func dictionaryWithValues(forKeys keys: [String]) -> [String : Any] func setValuesForKeys(_ keyedValues: [String : Any]) func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool func fileManager(_ fm: FileManager, willProcessPath path: String) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode]) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval) class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?) class func cancelPreviousPerformRequests(withTarget aTarget: Any) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool var autoContentAccessingProxy: Any { get } class func version() -> Int class func setVersion(_ aVersion: Int) var classForCoder: AnyClass { get } func awakeAfter(using aDecoder: NSCoder) -> Any? func provideImageData(_ data: UnsafeMutableRawPointer, bytesPerRow rowbytes: Int, origin x: Int, _ y: Int, size width: Int, _ height: Int, userInfo info: Any?) } extension MPContentItem : CVarArg { } extension MPContentItem : Equatable, Hashable { var hashValue: Int { get } } | CVarArg, Equatable, Hashable |
Modified MPContentItem.isContainer
Declaration | |
---|---|
From | var container: Bool |
To | var isContainer: Bool |
Modified MPContentItem.isPlayable
Declaration | |
---|---|
From | var playable: Bool |
To | var isPlayable: Bool |
Modified MPError.Code [enum]
Declaration | |
---|---|
From | enum MPErrorCode : Int { case Unknown case PermissionDenied case CloudServiceCapabilityMissing case NetworkConnectionFailed case NotFound case NotSupported } |
To | enum Code : Int { typealias _ErrorType = MPError case unknown case permissionDenied case cloudServiceCapabilityMissing case networkConnectionFailed case notFound case notSupported } |
Declaration | Introduction | |
---|---|---|
From | case CloudServiceCapabilityMissing | tvOS 9.2 |
To | case cloudServiceCapabilityMissing | tvOS 10.0 |
Modified MPError.Code.networkConnectionFailed
Declaration | |
---|---|
From | case NetworkConnectionFailed |
To | case networkConnectionFailed |
Modified MPError.Code.notFound
Declaration | Introduction | |
---|---|---|
From | case NotFound | tvOS 9.2 |
To | case notFound | tvOS 10.0 |
Modified MPError.Code.notSupported
Declaration | Introduction | |
---|---|---|
From | case NotSupported | tvOS 9.2 |
To | case notSupported | tvOS 10.0 |
Modified MPError.Code.permissionDenied
Declaration | |
---|---|
From | case PermissionDenied |
To | case permissionDenied |
Modified MPError.Code.unknown
Declaration | |
---|---|
From | case Unknown |
To | case unknown |
Modified MPFeedbackCommand
Declaration | |
---|---|
From | class MPFeedbackCommand : MPRemoteCommand { var active: Bool var localizedTitle: String var localizedShortTitle: String } |
To | class MPFeedbackCommand : MPRemoteCommand { var isActive: Bool var localizedTitle: String var localizedShortTitle: String } |
Modified MPFeedbackCommand.isActive
Declaration | |
---|---|
From | var active: Bool |
To | var isActive: Bool |
Modified MPFeedbackCommandEvent
Declaration | |
---|---|
From | class MPFeedbackCommandEvent : MPRemoteCommandEvent { var negative: Bool { get } } |
To | class MPFeedbackCommandEvent : MPRemoteCommandEvent { var isNegative: Bool { get } } |
Modified MPFeedbackCommandEvent.isNegative
Declaration | |
---|---|
From | var negative: Bool { get } |
To | var isNegative: Bool { get } |
Declaration | |
---|---|
From | class func persistentIDPropertyForGroupingType(_ groupingType: MPMediaGrouping) -> String |
To | class func persistentIDProperty(forGroupingType groupingType: MPMediaGrouping) -> String |
Declaration | |
---|---|
From | class func titlePropertyForGroupingType(_ groupingType: MPMediaGrouping) -> String |
To | class func titleProperty(forGroupingType groupingType: MPMediaGrouping) -> String |
Declaration | |
---|---|
From | enum MPMediaLibraryAuthorizationStatus : Int { case NotDetermined case Denied case Restricted case Authorized } |
To | enum MPMediaLibraryAuthorizationStatus : Int { case notDetermined case denied case restricted case authorized } |
Declaration | |
---|---|
From | case Authorized |
To | case authorized |
Declaration | |
---|---|
From | case Denied |
To | case denied |
Declaration | |
---|---|
From | case NotDetermined |
To | case notDetermined |
Declaration | |
---|---|
From | case Restricted |
To | case restricted |
Modified MPMediaPlayback
Declaration | |
---|---|
From | protocol MPMediaPlayback { func prepareToPlay() var isPreparedToPlay: Bool { get } func play() func pause() func stop() var currentPlaybackTime: NSTimeInterval { get set } var currentPlaybackRate: Float { get set } func beginSeekingForward() func beginSeekingBackward() func endSeeking() } |
To | protocol MPMediaPlayback { func prepareToPlay() var isPreparedToPlay: Bool { get } func play() func pause() func stop() var currentPlaybackTime: TimeInterval { get set } var currentPlaybackRate: Float { get set } func beginSeekingForward() func beginSeekingBackward() func endSeeking() } |
Modified MPMediaPlayback.currentPlaybackTime
Declaration | |
---|---|
From | var currentPlaybackTime: NSTimeInterval { get set } |
To | var currentPlaybackTime: TimeInterval { get set } |
Modified MPMoviePlayerController.duration
Declaration | |
---|---|
From | var duration: NSTimeInterval { get } |
To | var duration: TimeInterval { get } |
Declaration | |
---|---|
From | var endPlaybackTime: NSTimeInterval |
To | var endPlaybackTime: TimeInterval |
Declaration | |
---|---|
From | var initialPlaybackTime: NSTimeInterval |
To | var initialPlaybackTime: TimeInterval |
Declaration | |
---|---|
From | var airPlayVideoActive: Bool { get } |
To | var isAirPlayVideoActive: Bool { get } |
Declaration | |
---|---|
From | var playableDuration: NSTimeInterval { get } |
To | var playableDuration: TimeInterval { get } |
Modified MPMoviePlayerController.requestThumbnailImages(atTimes: [Any]!, timeOption: MPMovieTimeOption)
Declaration | |
---|---|
From | func requestThumbnailImagesAtTimes(_ playbackTimes: [AnyObject]!, timeOption option: MPMovieTimeOption) |
To | func requestThumbnailImages(atTimes playbackTimes: [Any]!, timeOption option: MPMovieTimeOption) |
Declaration | |
---|---|
From | var timedMetadata: [AnyObject]! { get } |
To | var timedMetadata: [Any]! { get } |
Declaration | |
---|---|
From | func setQueueWithItemCollection(_ itemCollection: MPMediaItemCollection) |
To | func setQueue(with itemCollection: MPMediaItemCollection) |
Declaration | |
---|---|
From | func setQueueWithQuery(_ query: MPMediaQuery) |
To | func setQueue(with query: MPMediaQuery) |
Modified MPNowPlayingInfoCenter
Declaration | Protocols | |
---|---|---|
From | class MPNowPlayingInfoCenter : NSObject { class func defaultCenter() -> MPNowPlayingInfoCenter var nowPlayingInfo: [String : AnyObject]? } | -- |
To | class MPNowPlayingInfoCenter : NSObject { class func `default`() -> MPNowPlayingInfoCenter var nowPlayingInfo: [String : Any]? func awakeFromNib() func prepareForInterfaceBuilder() func accessibilityActivate() -> Bool func accessibilityIncrement() func accessibilityDecrement() func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool func accessibilityPerformEscape() -> Bool func accessibilityPerformMagicTap() -> Bool var accessibilityCustomActions: [UIAccessibilityCustomAction]? func accessibilityElementDidBecomeFocused() func accessibilityElementDidLoseFocus() func accessibilityElementIsFocused() -> Bool func accessibilityAssistiveTechnologyFocusedIdentifiers() -> Set<String>? func accessibilityElementCount() -> Int func accessibilityElement(at index: Int) -> Any? func index(ofAccessibilityElement element: Any) -> Int var accessibilityElements: [Any]? var isAccessibilityElement: Bool var accessibilityLabel: String? var accessibilityHint: String? var accessibilityValue: String? var accessibilityTraits: UIAccessibilityTraits var accessibilityFrame: CGRect @NSCopying var accessibilityPath: UIBezierPath? var accessibilityActivationPoint: CGPoint var accessibilityLanguage: String? var accessibilityElementsHidden: Bool var accessibilityViewIsModal: Bool var shouldGroupAccessibilityChildren: Bool var accessibilityNavigationStyle: UIAccessibilityNavigationStyle var accessibilityHeaderElements: [Any]? var accessibilityCustomRotors: [UIAccessibilityCustomRotor]? func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool) func performSelector(inBackground aSelector: Selector, with arg: Any?) class func classForKeyedUnarchiver() -> AnyClass var classForKeyedArchiver: AnyClass? { get } func replacementObject(for archiver: NSKeyedArchiver) -> Any? class func classFallbacksForKeyedArchiver() -> [String] class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String> class func automaticallyNotifiesObservers(forKey key: String) -> Bool var observationInfo: UnsafeMutableRawPointer? func willChangeValue(forKey key: String) func didChangeValue(forKey key: String) func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String) func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?) class var accessInstanceVariablesDirectly: Bool { get } func value(forKey key: String) -> Any? func setValue(_ value: Any?, forKey key: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws func mutableArrayValue(forKey key: String) -> NSMutableArray func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet func mutableSetValue(forKey key: String) -> NSMutableSet func value(forKeyPath keyPath: String) -> Any? func setValue(_ value: Any?, forKeyPath keyPath: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet func value(forUndefinedKey key: String) -> Any? func setValue(_ value: Any?, forUndefinedKey key: String) func setNilValueForKey(_ key: String) func dictionaryWithValues(forKeys keys: [String]) -> [String : Any] func setValuesForKeys(_ keyedValues: [String : Any]) func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool func fileManager(_ fm: FileManager, willProcessPath path: String) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode]) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval) class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?) class func cancelPreviousPerformRequests(withTarget aTarget: Any) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool var autoContentAccessingProxy: Any { get } class func version() -> Int class func setVersion(_ aVersion: Int) var classForCoder: AnyClass { get } func awakeAfter(using aDecoder: NSCoder) -> Any? func provideImageData(_ data: UnsafeMutableRawPointer, bytesPerRow rowbytes: Int, origin x: Int, _ y: Int, size width: Int, _ height: Int, userInfo info: Any?) } extension MPNowPlayingInfoCenter : CVarArg { } extension MPNowPlayingInfoCenter : Equatable, Hashable { var hashValue: Int { get } } | CVarArg, Equatable, Hashable |
Declaration | |
---|---|
From | class func defaultCenter() -> MPNowPlayingInfoCenter |
To | class func `default`() -> MPNowPlayingInfoCenter |
Declaration | |
---|---|
From | var nowPlayingInfo: [String : AnyObject]? |
To | var nowPlayingInfo: [String : Any]? |
Modified MPNowPlayingInfoLanguageOption
Declaration | Protocols | |
---|---|---|
From | class MPNowPlayingInfoLanguageOption : NSObject { init(type languageOptionType: MPNowPlayingInfoLanguageOptionType, languageTag languageTag: String, characteristics languageOptionCharacteristics: [String]?, displayName displayName: String, identifier identifier: String) func isAutomaticLegibleLanguageOption() -> Bool func isAutomaticAudibleLanguageOption() -> Bool var languageOptionType: MPNowPlayingInfoLanguageOptionType { get } var languageTag: String? { get } var languageOptionCharacteristics: [String]? { get } var displayName: String? { get } var identifier: String? { get } } | -- |
To | class MPNowPlayingInfoLanguageOption : NSObject { init(type languageOptionType: MPNowPlayingInfoLanguageOptionType, languageTag languageTag: String, characteristics languageOptionCharacteristics: [String]?, displayName displayName: String, identifier identifier: String) func isAutomaticLegibleLanguageOption() -> Bool func isAutomaticAudibleLanguageOption() -> Bool var languageOptionType: MPNowPlayingInfoLanguageOptionType { get } var languageTag: String? { get } var languageOptionCharacteristics: [String]? { get } var displayName: String? { get } var identifier: String? { get } func awakeFromNib() func prepareForInterfaceBuilder() func accessibilityActivate() -> Bool func accessibilityIncrement() func accessibilityDecrement() func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool func accessibilityPerformEscape() -> Bool func accessibilityPerformMagicTap() -> Bool var accessibilityCustomActions: [UIAccessibilityCustomAction]? func accessibilityElementDidBecomeFocused() func accessibilityElementDidLoseFocus() func accessibilityElementIsFocused() -> Bool func accessibilityAssistiveTechnologyFocusedIdentifiers() -> Set<String>? func accessibilityElementCount() -> Int func accessibilityElement(at index: Int) -> Any? func index(ofAccessibilityElement element: Any) -> Int var accessibilityElements: [Any]? var isAccessibilityElement: Bool var accessibilityLabel: String? var accessibilityHint: String? var accessibilityValue: String? var accessibilityTraits: UIAccessibilityTraits var accessibilityFrame: CGRect @NSCopying var accessibilityPath: UIBezierPath? var accessibilityActivationPoint: CGPoint var accessibilityLanguage: String? var accessibilityElementsHidden: Bool var accessibilityViewIsModal: Bool var shouldGroupAccessibilityChildren: Bool var accessibilityNavigationStyle: UIAccessibilityNavigationStyle var accessibilityHeaderElements: [Any]? var accessibilityCustomRotors: [UIAccessibilityCustomRotor]? func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool) func performSelector(inBackground aSelector: Selector, with arg: Any?) class func classForKeyedUnarchiver() -> AnyClass var classForKeyedArchiver: AnyClass? { get } func replacementObject(for archiver: NSKeyedArchiver) -> Any? class func classFallbacksForKeyedArchiver() -> [String] class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String> class func automaticallyNotifiesObservers(forKey key: String) -> Bool var observationInfo: UnsafeMutableRawPointer? func willChangeValue(forKey key: String) func didChangeValue(forKey key: String) func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String) func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?) class var accessInstanceVariablesDirectly: Bool { get } func value(forKey key: String) -> Any? func setValue(_ value: Any?, forKey key: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws func mutableArrayValue(forKey key: String) -> NSMutableArray func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet func mutableSetValue(forKey key: String) -> NSMutableSet func value(forKeyPath keyPath: String) -> Any? func setValue(_ value: Any?, forKeyPath keyPath: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet func value(forUndefinedKey key: String) -> Any? func setValue(_ value: Any?, forUndefinedKey key: String) func setNilValueForKey(_ key: String) func dictionaryWithValues(forKeys keys: [String]) -> [String : Any] func setValuesForKeys(_ keyedValues: [String : Any]) func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool func fileManager(_ fm: FileManager, willProcessPath path: String) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode]) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval) class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?) class func cancelPreviousPerformRequests(withTarget aTarget: Any) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool var autoContentAccessingProxy: Any { get } class func version() -> Int class func setVersion(_ aVersion: Int) var classForCoder: AnyClass { get } func awakeAfter(using aDecoder: NSCoder) -> Any? func provideImageData(_ data: UnsafeMutableRawPointer, bytesPerRow rowbytes: Int, origin x: Int, _ y: Int, size width: Int, _ height: Int, userInfo info: Any?) } extension MPNowPlayingInfoLanguageOption : CVarArg { } extension MPNowPlayingInfoLanguageOption : Equatable, Hashable { var hashValue: Int { get } } | CVarArg, Equatable, Hashable |
Modified MPNowPlayingInfoLanguageOptionGroup
Declaration | Protocols | |
---|---|---|
From | class MPNowPlayingInfoLanguageOptionGroup : NSObject { init(languageOptions languageOptions: [MPNowPlayingInfoLanguageOption], defaultLanguageOption defaultLanguageOption: MPNowPlayingInfoLanguageOption?, allowEmptySelection allowEmptySelection: Bool) var languageOptions: [MPNowPlayingInfoLanguageOption] { get } var defaultLanguageOption: MPNowPlayingInfoLanguageOption? { get } var allowEmptySelection: Bool { get } } | -- |
To | class MPNowPlayingInfoLanguageOptionGroup : NSObject { init(languageOptions languageOptions: [MPNowPlayingInfoLanguageOption], defaultLanguageOption defaultLanguageOption: MPNowPlayingInfoLanguageOption?, allowEmptySelection allowEmptySelection: Bool) var languageOptions: [MPNowPlayingInfoLanguageOption] { get } var defaultLanguageOption: MPNowPlayingInfoLanguageOption? { get } var allowEmptySelection: Bool { get } func awakeFromNib() func prepareForInterfaceBuilder() func accessibilityActivate() -> Bool func accessibilityIncrement() func accessibilityDecrement() func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool func accessibilityPerformEscape() -> Bool func accessibilityPerformMagicTap() -> Bool var accessibilityCustomActions: [UIAccessibilityCustomAction]? func accessibilityElementDidBecomeFocused() func accessibilityElementDidLoseFocus() func accessibilityElementIsFocused() -> Bool func accessibilityAssistiveTechnologyFocusedIdentifiers() -> Set<String>? func accessibilityElementCount() -> Int func accessibilityElement(at index: Int) -> Any? func index(ofAccessibilityElement element: Any) -> Int var accessibilityElements: [Any]? var isAccessibilityElement: Bool var accessibilityLabel: String? var accessibilityHint: String? var accessibilityValue: String? var accessibilityTraits: UIAccessibilityTraits var accessibilityFrame: CGRect @NSCopying var accessibilityPath: UIBezierPath? var accessibilityActivationPoint: CGPoint var accessibilityLanguage: String? var accessibilityElementsHidden: Bool var accessibilityViewIsModal: Bool var shouldGroupAccessibilityChildren: Bool var accessibilityNavigationStyle: UIAccessibilityNavigationStyle var accessibilityHeaderElements: [Any]? var accessibilityCustomRotors: [UIAccessibilityCustomRotor]? func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool) func performSelector(inBackground aSelector: Selector, with arg: Any?) class func classForKeyedUnarchiver() -> AnyClass var classForKeyedArchiver: AnyClass? { get } func replacementObject(for archiver: NSKeyedArchiver) -> Any? class func classFallbacksForKeyedArchiver() -> [String] class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String> class func automaticallyNotifiesObservers(forKey key: String) -> Bool var observationInfo: UnsafeMutableRawPointer? func willChangeValue(forKey key: String) func didChangeValue(forKey key: String) func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String) func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?) class var accessInstanceVariablesDirectly: Bool { get } func value(forKey key: String) -> Any? func setValue(_ value: Any?, forKey key: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws func mutableArrayValue(forKey key: String) -> NSMutableArray func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet func mutableSetValue(forKey key: String) -> NSMutableSet func value(forKeyPath keyPath: String) -> Any? func setValue(_ value: Any?, forKeyPath keyPath: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet func value(forUndefinedKey key: String) -> Any? func setValue(_ value: Any?, forUndefinedKey key: String) func setNilValueForKey(_ key: String) func dictionaryWithValues(forKeys keys: [String]) -> [String : Any] func setValuesForKeys(_ keyedValues: [String : Any]) func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool func fileManager(_ fm: FileManager, willProcessPath path: String) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode]) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval) class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?) class func cancelPreviousPerformRequests(withTarget aTarget: Any) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool var autoContentAccessingProxy: Any { get } class func version() -> Int class func setVersion(_ aVersion: Int) var classForCoder: AnyClass { get } func awakeAfter(using aDecoder: NSCoder) -> Any? func provideImageData(_ data: UnsafeMutableRawPointer, bytesPerRow rowbytes: Int, origin x: Int, _ y: Int, size width: Int, _ height: Int, userInfo info: Any?) } extension MPNowPlayingInfoLanguageOptionGroup : CVarArg { } extension MPNowPlayingInfoLanguageOptionGroup : Equatable, Hashable { var hashValue: Int { get } } | CVarArg, Equatable, Hashable |
Declaration | |
---|---|
From | enum MPNowPlayingInfoLanguageOptionType : UInt { case Audible case Legible } |
To | enum MPNowPlayingInfoLanguageOptionType : UInt { case audible case legible } |
Declaration | |
---|---|
From | case Audible |
To | case audible |
Declaration | |
---|---|
From | case Legible |
To | case legible |
Modified MPRemoteCommand
Declaration | Protocols | |
---|---|---|
From | class MPRemoteCommand : NSObject { var enabled: Bool func addTarget(_ target: AnyObject, action action: Selector) func removeTarget(_ target: AnyObject, action action: Selector) func removeTarget(_ target: AnyObject?) func addTargetWithHandler(_ handler: (MPRemoteCommandEvent) -> MPRemoteCommandHandlerStatus) -> AnyObject } | -- |
To | class MPRemoteCommand : NSObject { var isEnabled: Bool func addTarget(_ target: Any, action action: Selector) func removeTarget(_ target: Any, action action: Selector?) func removeTarget(_ target: Any?) func addTarget(handler handler: @escaping (MPRemoteCommandEvent) -> MPRemoteCommandHandlerStatus) -> Any init() func awakeFromNib() func prepareForInterfaceBuilder() func accessibilityActivate() -> Bool func accessibilityIncrement() func accessibilityDecrement() func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool func accessibilityPerformEscape() -> Bool func accessibilityPerformMagicTap() -> Bool var accessibilityCustomActions: [UIAccessibilityCustomAction]? func accessibilityElementDidBecomeFocused() func accessibilityElementDidLoseFocus() func accessibilityElementIsFocused() -> Bool func accessibilityAssistiveTechnologyFocusedIdentifiers() -> Set<String>? func accessibilityElementCount() -> Int func accessibilityElement(at index: Int) -> Any? func index(ofAccessibilityElement element: Any) -> Int var accessibilityElements: [Any]? var isAccessibilityElement: Bool var accessibilityLabel: String? var accessibilityHint: String? var accessibilityValue: String? var accessibilityTraits: UIAccessibilityTraits var accessibilityFrame: CGRect @NSCopying var accessibilityPath: UIBezierPath? var accessibilityActivationPoint: CGPoint var accessibilityLanguage: String? var accessibilityElementsHidden: Bool var accessibilityViewIsModal: Bool var shouldGroupAccessibilityChildren: Bool var accessibilityNavigationStyle: UIAccessibilityNavigationStyle var accessibilityHeaderElements: [Any]? var accessibilityCustomRotors: [UIAccessibilityCustomRotor]? func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool) func performSelector(inBackground aSelector: Selector, with arg: Any?) class func classForKeyedUnarchiver() -> AnyClass var classForKeyedArchiver: AnyClass? { get } func replacementObject(for archiver: NSKeyedArchiver) -> Any? class func classFallbacksForKeyedArchiver() -> [String] class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String> class func automaticallyNotifiesObservers(forKey key: String) -> Bool var observationInfo: UnsafeMutableRawPointer? func willChangeValue(forKey key: String) func didChangeValue(forKey key: String) func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String) func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?) class var accessInstanceVariablesDirectly: Bool { get } func value(forKey key: String) -> Any? func setValue(_ value: Any?, forKey key: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws func mutableArrayValue(forKey key: String) -> NSMutableArray func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet func mutableSetValue(forKey key: String) -> NSMutableSet func value(forKeyPath keyPath: String) -> Any? func setValue(_ value: Any?, forKeyPath keyPath: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet func value(forUndefinedKey key: String) -> Any? func setValue(_ value: Any?, forUndefinedKey key: String) func setNilValueForKey(_ key: String) func dictionaryWithValues(forKeys keys: [String]) -> [String : Any] func setValuesForKeys(_ keyedValues: [String : Any]) func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool func fileManager(_ fm: FileManager, willProcessPath path: String) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode]) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval) class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?) class func cancelPreviousPerformRequests(withTarget aTarget: Any) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool var autoContentAccessingProxy: Any { get } class func version() -> Int class func setVersion(_ aVersion: Int) var classForCoder: AnyClass { get } func awakeAfter(using aDecoder: NSCoder) -> Any? func provideImageData(_ data: UnsafeMutableRawPointer, bytesPerRow rowbytes: Int, origin x: Int, _ y: Int, size width: Int, _ height: Int, userInfo info: Any?) } extension MPRemoteCommand : CVarArg { } extension MPRemoteCommand : Equatable, Hashable { var hashValue: Int { get } } | CVarArg, Equatable, Hashable |
Declaration | |
---|---|
From | func addTarget(_ target: AnyObject, action action: Selector) |
To | func addTarget(_ target: Any, action action: Selector) |
Modified MPRemoteCommand.addTarget(handler: (MPRemoteCommandEvent) -> MPRemoteCommandHandlerStatus) -> Any
Declaration | |
---|---|
From | func addTargetWithHandler(_ handler: (MPRemoteCommandEvent) -> MPRemoteCommandHandlerStatus) -> AnyObject |
To | func addTarget(handler handler: @escaping (MPRemoteCommandEvent) -> MPRemoteCommandHandlerStatus) -> Any |
Modified MPRemoteCommand.isEnabled
Declaration | |
---|---|
From | var enabled: Bool |
To | var isEnabled: Bool |
Declaration | |
---|---|
From | func removeTarget(_ target: AnyObject?) |
To | func removeTarget(_ target: Any?) |
Declaration | |
---|---|
From | func removeTarget(_ target: AnyObject, action action: Selector) |
To | func removeTarget(_ target: Any, action action: Selector?) |
Modified MPRemoteCommandCenter
Declaration | Protocols | |
---|---|---|
From | class MPRemoteCommandCenter : NSObject { var pauseCommand: MPRemoteCommand { get } var playCommand: MPRemoteCommand { get } var stopCommand: MPRemoteCommand { get } var togglePlayPauseCommand: MPRemoteCommand { get } var enableLanguageOptionCommand: MPRemoteCommand { get } var disableLanguageOptionCommand: MPRemoteCommand { get } var nextTrackCommand: MPRemoteCommand { get } var previousTrackCommand: MPRemoteCommand { get } var skipForwardCommand: MPSkipIntervalCommand { get } var skipBackwardCommand: MPSkipIntervalCommand { get } var seekForwardCommand: MPRemoteCommand { get } var seekBackwardCommand: MPRemoteCommand { get } var ratingCommand: MPRatingCommand { get } var changePlaybackRateCommand: MPChangePlaybackRateCommand { get } var likeCommand: MPFeedbackCommand { get } var dislikeCommand: MPFeedbackCommand { get } var bookmarkCommand: MPFeedbackCommand { get } var changePlaybackPositionCommand: MPChangePlaybackPositionCommand { get } class func sharedCommandCenter() -> MPRemoteCommandCenter } | -- |
To | class MPRemoteCommandCenter : NSObject { var pauseCommand: MPRemoteCommand { get } var playCommand: MPRemoteCommand { get } var stopCommand: MPRemoteCommand { get } var togglePlayPauseCommand: MPRemoteCommand { get } var enableLanguageOptionCommand: MPRemoteCommand { get } var disableLanguageOptionCommand: MPRemoteCommand { get } var changePlaybackRateCommand: MPChangePlaybackRateCommand { get } var changeRepeatModeCommand: MPChangeRepeatModeCommand { get } var changeShuffleModeCommand: MPChangeShuffleModeCommand { get } var nextTrackCommand: MPRemoteCommand { get } var previousTrackCommand: MPRemoteCommand { get } var skipForwardCommand: MPSkipIntervalCommand { get } var skipBackwardCommand: MPSkipIntervalCommand { get } var seekForwardCommand: MPRemoteCommand { get } var seekBackwardCommand: MPRemoteCommand { get } var changePlaybackPositionCommand: MPChangePlaybackPositionCommand { get } var ratingCommand: MPRatingCommand { get } var likeCommand: MPFeedbackCommand { get } var dislikeCommand: MPFeedbackCommand { get } var bookmarkCommand: MPFeedbackCommand { get } class func shared() -> MPRemoteCommandCenter init() func awakeFromNib() func prepareForInterfaceBuilder() func accessibilityActivate() -> Bool func accessibilityIncrement() func accessibilityDecrement() func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool func accessibilityPerformEscape() -> Bool func accessibilityPerformMagicTap() -> Bool var accessibilityCustomActions: [UIAccessibilityCustomAction]? func accessibilityElementDidBecomeFocused() func accessibilityElementDidLoseFocus() func accessibilityElementIsFocused() -> Bool func accessibilityAssistiveTechnologyFocusedIdentifiers() -> Set<String>? func accessibilityElementCount() -> Int func accessibilityElement(at index: Int) -> Any? func index(ofAccessibilityElement element: Any) -> Int var accessibilityElements: [Any]? var isAccessibilityElement: Bool var accessibilityLabel: String? var accessibilityHint: String? var accessibilityValue: String? var accessibilityTraits: UIAccessibilityTraits var accessibilityFrame: CGRect @NSCopying var accessibilityPath: UIBezierPath? var accessibilityActivationPoint: CGPoint var accessibilityLanguage: String? var accessibilityElementsHidden: Bool var accessibilityViewIsModal: Bool var shouldGroupAccessibilityChildren: Bool var accessibilityNavigationStyle: UIAccessibilityNavigationStyle var accessibilityHeaderElements: [Any]? var accessibilityCustomRotors: [UIAccessibilityCustomRotor]? func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool) func performSelector(inBackground aSelector: Selector, with arg: Any?) class func classForKeyedUnarchiver() -> AnyClass var classForKeyedArchiver: AnyClass? { get } func replacementObject(for archiver: NSKeyedArchiver) -> Any? class func classFallbacksForKeyedArchiver() -> [String] class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String> class func automaticallyNotifiesObservers(forKey key: String) -> Bool var observationInfo: UnsafeMutableRawPointer? func willChangeValue(forKey key: String) func didChangeValue(forKey key: String) func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String) func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?) class var accessInstanceVariablesDirectly: Bool { get } func value(forKey key: String) -> Any? func setValue(_ value: Any?, forKey key: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws func mutableArrayValue(forKey key: String) -> NSMutableArray func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet func mutableSetValue(forKey key: String) -> NSMutableSet func value(forKeyPath keyPath: String) -> Any? func setValue(_ value: Any?, forKeyPath keyPath: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet func value(forUndefinedKey key: String) -> Any? func setValue(_ value: Any?, forUndefinedKey key: String) func setNilValueForKey(_ key: String) func dictionaryWithValues(forKeys keys: [String]) -> [String : Any] func setValuesForKeys(_ keyedValues: [String : Any]) func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool func fileManager(_ fm: FileManager, willProcessPath path: String) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode]) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval) class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?) class func cancelPreviousPerformRequests(withTarget aTarget: Any) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool var autoContentAccessingProxy: Any { get } class func version() -> Int class func setVersion(_ aVersion: Int) var classForCoder: AnyClass { get } func awakeAfter(using aDecoder: NSCoder) -> Any? func provideImageData(_ data: UnsafeMutableRawPointer, bytesPerRow rowbytes: Int, origin x: Int, _ y: Int, size width: Int, _ height: Int, userInfo info: Any?) } extension MPRemoteCommandCenter : CVarArg { } extension MPRemoteCommandCenter : Equatable, Hashable { var hashValue: Int { get } } | CVarArg, Equatable, Hashable |
Introduction | |
---|---|
From | tvOS 9.0 |
To | tvOS 9.1 |
Declaration | |
---|---|
From | class func sharedCommandCenter() -> MPRemoteCommandCenter |
To | class func shared() -> MPRemoteCommandCenter |
Modified MPRemoteCommandEvent
Declaration | Protocols | |
---|---|---|
From | class MPRemoteCommandEvent : NSObject { var command: MPRemoteCommand { get } var timestamp: NSTimeInterval { get } } | -- |
To | class MPRemoteCommandEvent : NSObject { var command: MPRemoteCommand { get } var timestamp: TimeInterval { get } func awakeFromNib() func prepareForInterfaceBuilder() func accessibilityActivate() -> Bool func accessibilityIncrement() func accessibilityDecrement() func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool func accessibilityPerformEscape() -> Bool func accessibilityPerformMagicTap() -> Bool var accessibilityCustomActions: [UIAccessibilityCustomAction]? func accessibilityElementDidBecomeFocused() func accessibilityElementDidLoseFocus() func accessibilityElementIsFocused() -> Bool func accessibilityAssistiveTechnologyFocusedIdentifiers() -> Set<String>? func accessibilityElementCount() -> Int func accessibilityElement(at index: Int) -> Any? func index(ofAccessibilityElement element: Any) -> Int var accessibilityElements: [Any]? var isAccessibilityElement: Bool var accessibilityLabel: String? var accessibilityHint: String? var accessibilityValue: String? var accessibilityTraits: UIAccessibilityTraits var accessibilityFrame: CGRect @NSCopying var accessibilityPath: UIBezierPath? var accessibilityActivationPoint: CGPoint var accessibilityLanguage: String? var accessibilityElementsHidden: Bool var accessibilityViewIsModal: Bool var shouldGroupAccessibilityChildren: Bool var accessibilityNavigationStyle: UIAccessibilityNavigationStyle var accessibilityHeaderElements: [Any]? var accessibilityCustomRotors: [UIAccessibilityCustomRotor]? func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?) func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool) func performSelector(inBackground aSelector: Selector, with arg: Any?) class func classForKeyedUnarchiver() -> AnyClass var classForKeyedArchiver: AnyClass? { get } func replacementObject(for archiver: NSKeyedArchiver) -> Any? class func classFallbacksForKeyedArchiver() -> [String] class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String> class func automaticallyNotifiesObservers(forKey key: String) -> Bool var observationInfo: UnsafeMutableRawPointer? func willChangeValue(forKey key: String) func didChangeValue(forKey key: String) func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String) func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>) func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?) func removeObserver(_ observer: NSObject, forKeyPath keyPath: String) func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?) class var accessInstanceVariablesDirectly: Bool { get } func value(forKey key: String) -> Any? func setValue(_ value: Any?, forKey key: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws func mutableArrayValue(forKey key: String) -> NSMutableArray func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet func mutableSetValue(forKey key: String) -> NSMutableSet func value(forKeyPath keyPath: String) -> Any? func setValue(_ value: Any?, forKeyPath keyPath: String) func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet func value(forUndefinedKey key: String) -> Any? func setValue(_ value: Any?, forUndefinedKey key: String) func setNilValueForKey(_ key: String) func dictionaryWithValues(forKeys keys: [String]) -> [String : Any] func setValuesForKeys(_ keyedValues: [String : Any]) func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool func fileManager(_ fm: FileManager, willProcessPath path: String) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode]) func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval) class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?) class func cancelPreviousPerformRequests(withTarget aTarget: Any) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?) func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool var autoContentAccessingProxy: Any { get } class func version() -> Int class func setVersion(_ aVersion: Int) var classForCoder: AnyClass { get } func awakeAfter(using aDecoder: NSCoder) -> Any? func provideImageData(_ data: UnsafeMutableRawPointer, bytesPerRow rowbytes: Int, origin x: Int, _ y: Int, size width: Int, _ height: Int, userInfo info: Any?) } extension MPRemoteCommandEvent : CVarArg { } extension MPRemoteCommandEvent : Equatable, Hashable { var hashValue: Int { get } } | CVarArg, Equatable, Hashable |
Modified MPRemoteCommandEvent.timestamp
Declaration | |
---|---|
From | var timestamp: NSTimeInterval { get } |
To | var timestamp: TimeInterval { get } |
Modified MPRemoteCommandHandlerStatus [enum]
Declaration | |
---|---|
From | enum MPRemoteCommandHandlerStatus : Int { case Success case NoSuchContent case NoActionableNowPlayingItem case CommandFailed } |
To | enum MPRemoteCommandHandlerStatus : Int { case success case noSuchContent case noActionableNowPlayingItem case commandFailed } |
Declaration | |
---|---|
From | case CommandFailed |
To | case commandFailed |
Declaration | |
---|---|
From | case NoActionableNowPlayingItem |
To | case noActionableNowPlayingItem |
Declaration | |
---|---|
From | case NoSuchContent |
To | case noSuchContent |
Modified MPRemoteCommandHandlerStatus.success
Declaration | |
---|---|
From | case Success |
To | case success |
Modified MPSeekCommandEventType [enum]
Declaration | |
---|---|
From | enum MPSeekCommandEventType : UInt { case BeginSeeking case EndSeeking } |
To | enum MPSeekCommandEventType : UInt { case beginSeeking case endSeeking } |
Modified MPSeekCommandEventType.beginSeeking
Declaration | |
---|---|
From | case BeginSeeking |
To | case beginSeeking |
Modified MPSeekCommandEventType.endSeeking
Declaration | |
---|---|
From | case EndSeeking |
To | case endSeeking |
Modified MPSkipIntervalCommand
Declaration | |
---|---|
From | class MPSkipIntervalCommand : MPRemoteCommand { var preferredIntervals: [AnyObject] } |
To | class MPSkipIntervalCommand : MPRemoteCommand { var preferredIntervals: [NSNumber] } |
Declaration | |
---|---|
From | var preferredIntervals: [AnyObject] |
To | var preferredIntervals: [NSNumber] |
Modified MPSkipIntervalCommandEvent
Declaration | |
---|---|
From | class MPSkipIntervalCommandEvent : MPRemoteCommandEvent { var interval: NSTimeInterval { get } } |
To | class MPSkipIntervalCommandEvent : MPRemoteCommandEvent { var interval: TimeInterval { get } } |
Modified MPSkipIntervalCommandEvent.interval
Declaration | |
---|---|
From | var interval: NSTimeInterval { get } |
To | var interval: TimeInterval { get } |
Name | Declaration | |
---|---|---|
From | MPMovieDurationAvailableNotification | let MPMovieDurationAvailableNotification: String |
To | MPMovieDurationAvailable | static let MPMovieDurationAvailable: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMovieMediaTypesAvailableNotification | let MPMovieMediaTypesAvailableNotification: String |
To | MPMovieMediaTypesAvailable | static let MPMovieMediaTypesAvailable: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMovieNaturalSizeAvailableNotification | let MPMovieNaturalSizeAvailableNotification: String |
To | MPMovieNaturalSizeAvailable | static let MPMovieNaturalSizeAvailable: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMoviePlayerDidEnterFullscreenNotification | let MPMoviePlayerDidEnterFullscreenNotification: String |
To | MPMoviePlayerDidEnterFullscreen | static let MPMoviePlayerDidEnterFullscreen: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMoviePlayerDidExitFullscreenNotification | let MPMoviePlayerDidExitFullscreenNotification: String |
To | MPMoviePlayerDidExitFullscreen | static let MPMoviePlayerDidExitFullscreen: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMoviePlayerIsAirPlayVideoActiveDidChangeNotification | let MPMoviePlayerIsAirPlayVideoActiveDidChangeNotification: String |
To | MPMoviePlayerIsAirPlayVideoActiveDidChange | static let MPMoviePlayerIsAirPlayVideoActiveDidChange: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMoviePlayerLoadStateDidChangeNotification | let MPMoviePlayerLoadStateDidChangeNotification: String |
To | MPMoviePlayerLoadStateDidChange | static let MPMoviePlayerLoadStateDidChange: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMoviePlayerNowPlayingMovieDidChangeNotification | let MPMoviePlayerNowPlayingMovieDidChangeNotification: String |
To | MPMoviePlayerNowPlayingMovieDidChange | static let MPMoviePlayerNowPlayingMovieDidChange: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMoviePlayerPlaybackDidFinishNotification | let MPMoviePlayerPlaybackDidFinishNotification: String |
To | MPMoviePlayerPlaybackDidFinish | static let MPMoviePlayerPlaybackDidFinish: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMoviePlayerPlaybackStateDidChangeNotification | let MPMoviePlayerPlaybackStateDidChangeNotification: String |
To | MPMoviePlayerPlaybackStateDidChange | static let MPMoviePlayerPlaybackStateDidChange: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMoviePlayerReadyForDisplayDidChangeNotification | let MPMoviePlayerReadyForDisplayDidChangeNotification: String |
To | MPMoviePlayerReadyForDisplayDidChange | static let MPMoviePlayerReadyForDisplayDidChange: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMoviePlayerScalingModeDidChangeNotification | let MPMoviePlayerScalingModeDidChangeNotification: String |
To | MPMoviePlayerScalingModeDidChange | static let MPMoviePlayerScalingModeDidChange: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMoviePlayerThumbnailImageRequestDidFinishNotification | let MPMoviePlayerThumbnailImageRequestDidFinishNotification: String |
To | MPMoviePlayerThumbnailImageRequestDidFinish | static let MPMoviePlayerThumbnailImageRequestDidFinish: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMoviePlayerTimedMetadataUpdatedNotification | let MPMoviePlayerTimedMetadataUpdatedNotification: String |
To | MPMoviePlayerTimedMetadataUpdated | static let MPMoviePlayerTimedMetadataUpdated: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMoviePlayerWillEnterFullscreenNotification | let MPMoviePlayerWillEnterFullscreenNotification: String |
To | MPMoviePlayerWillEnterFullscreen | static let MPMoviePlayerWillEnterFullscreen: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMoviePlayerWillExitFullscreenNotification | let MPMoviePlayerWillExitFullscreenNotification: String |
To | MPMoviePlayerWillExitFullscreen | static let MPMoviePlayerWillExitFullscreen: NSNotification.Name |
Name | Declaration | |
---|---|---|
From | MPMovieSourceTypeAvailableNotification | let MPMovieSourceTypeAvailableNotification: String |
To | MPMovieSourceTypeAvailable | static let MPMovieSourceTypeAvailable: NSNotification.Name |