iOS Developer Library

Developer

MediaPlayer Framework Reference MPSeekCommandEvent Class Reference

Options
Deployment Target:

On This Page
Language:

MPSeekCommandEvent

Inherits From


Conforms To


Import Statement


Swift

import MediaPlayer

Objective-C

@import MediaPlayer;

Availability


Available in iOS 7.1 and later

The MPSeekCommandEvent class provides additional information for the seek properties described in the MPRemoteCommandCenter class. The MPSeekCommandEvent responds to begin and end command requests from an external media player.

  • type type Property

    The type of seek command event (read-only)

    Declaration

    Swift

    var type: MPSeekCommandEventType { get }

    Objective-C

    @property(nonatomic, readonly) MPSeekCommandEventType type

    Discussion

    The type property declares if a seek command is beginning or ending.

    Import Statement

    Objective-C

    @import MediaPlayer;

    Swift

    import MediaPlayer

    Availability

    Available in iOS 7.1 and later

Data Types

  • Defines the beginning and ending of seek events.

    Declaration

    Swift

    enum MPSeekCommandEventType : UInt { case BeginSeeking case EndSeeking }

    Objective-C

    typedef NS_ENUM(NSUInteger, MPSeekCommandEventType) { MPSeekCommandEventTypeBeginSeeking, MPSeekCommandEventTypeEndSeeking };

    Constants

    • BeginSeeking

      MPSeekCommandEventTypeBeginSeeking

      Indicates the external media player began seeking.

      Available in iOS 7.1 and later

    • EndSeeking

      MPSeekCommandEventTypeEndSeeking

      Indicates the external media player stopped seeking.

      Available in iOS 7.1 and later

    Import Statement

    Objective-C

    @import MediaPlayer;

    Swift

    import MediaPlayer

    Availability

    Available in iOS 7.1 and later