iOS Developer Library

Developer

MediaPlayer Framework Reference MPFeedbackCommandEvent Class Reference

Options
Deployment Target:

On This Page
Language:

MPFeedbackCommandEvent

Inheritance


Conforms To


Import Statement


Swift

import MediaPlayer

Objective-C

@import MediaPlayer;

Availability


Available in iOS 7.1 and later.

The MPFeedbackCommandEvent class provides additional information for the feedback properties described in MPRemoteCommandCenter Class Reference. The MPFeedbackCommandEvent class responds to a negative operation from an external media player.

  • negative negative Property

    A Boolean value that indicates whether an app should perform a negative command appropriate to the target. (read-only)

    Declaration

    Swift

    var negative: Bool { get }

    Objective-C

    @property(nonatomic, readonly, getter=isNegative) BOOL negative

    Discussion

    If TRUE, the designated element has a negative operation performed on the element. The performance of the negative command varies depending on the element it is referencing. For example, a negative command for a bookmark indicates that the bookmark should be removed. However, a negative command for a Like command could just lower the frequency that the designated element is played. This behavior differs from a Dislike command, which would blacklist the designated element and never play it again.

    It’s up to the app to determine exactly what should be done when a negative command is received.

    Import Statement

    Objective-C

    @import MediaPlayer;

    Swift

    import MediaPlayer

    Availability

    Available in iOS 7.1 and later.