XAPlaying Protocol Reference

Conforms to NSObject
Declared in XAPlaying.h

Overview

Protocol for objects that can be played.

  delegate required method

The delegate for the playable object, receives updates on playback status through the delegate

@property (nullable, readwrite) NSObject<XAPlayingDelegate> *delegate

Discussion

The delegate for the playable object, receives updates on playback status through the delegate

Declared In

XAPlaying.h

  duration required method

The duration of the playable content.

@property (readonly) NSTimeInterval duration

Discussion

The duration of the playable content.

Declared In

XAPlaying.h

  currentTime required method

The current time into the playable object

@property (nonatomic, readonly) NSTimeInterval currentTime

Discussion

The current time into the playable object

Declared In

XAPlaying.h

  playing required method

If the playable object is currently playing

@property (nonatomic, readonly, getter=isPlaying) BOOL playing

Discussion

If the playable object is currently playing

Declared In

XAPlaying.h

  skippable required method

If the playable object can be skipped

@property (nonatomic, readonly, getter=isSkippable) BOOL skippable

Discussion

If the playable object can be skipped

Declared In

XAPlaying.h

– play required method

Play

- (void)play

Discussion

Play

Declared In

XAPlaying.h

– pause required method

Pause

- (void)pause

Discussion

Pause

Declared In

XAPlaying.h

– stop required method

Stop

- (void)stop

Discussion

Stop

Declared In

XAPlaying.h