iOS Developer Library

Developer

MediaPlayer Framework Reference MPRemoteCommandEvent Class Reference

Options
Deployment Target:

On This Page
Language:

MPRemoteCommandEvent

The MPRemoteCommandEvent class provides the basic information for a command. It details the command sent and the time the command was sent by the external media player. More...

Conforms To


Import Statement


import MediaPlayer @import MediaPlayer;

Availability


Available in iOS 7.1 and later.
  • command command Property

    The command that sent the event. (read-only)

    Declaration

    Swift

    var command: MPRemoteCommand! { get }

    Objective-C

    @property(nonatomic, readonly) MPRemoteCommand *command

    Import Statement

    import MediaPlayer

    Availability

    Available in iOS 7.1 and later.

  • timestamp timestamp Property

    The time the event occurred. (read-only)

    Declaration

    Swift

    var timestamp: NSTimeInterval { get }

    Objective-C

    @property(nonatomic, readonly) NSTimeInterval timestamp

    Import Statement

    import MediaPlayer

    Availability

    Available in iOS 7.1 and later.