BMPPlayerEventHandler

Objective-C

@protocol BMPPlayerEventHandler <NSObject>

Swift

protocol PlayerEventHandler : NSObjectProtocol

Manages listeners to specific PlayerEvents and notifies those listeners when such an event is being emitted. Listeners need to conform to the PlayerListener protocol. See PlayerListener about possible event method implementations.

  • Adds a PlayerEvent listener.

    Declaration

    Objective-C

    - (void)addPlayerListener:(nonnull id<BMPPlayerListener>)listener;

    Parameters

    listener

    The event listener to be added.

  • Removes a PlayerEvent listener.

    Declaration

    Objective-C

    - (void)removePlayerListener:(nonnull id<BMPPlayerListener>)listener;

    Parameters

    listener

    The event listener to be removed.