BMPPlayerEventHandler

Objective-C

@protocol BMPPlayerEventHandler <NSObject>

Swift

protocol PlayerEventHandler : NSObjectProtocol

Handles adding and removing of event listeners.

  • Adds an event listener.

    Declaration

    Objective-C

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

    Swift

    func add(listener: PlayerListener)

    Parameters

    listener

    The event listener to be added.

  • Removes an event listener.

    Declaration

    Objective-C

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

    Swift

    func remove(listener: PlayerListener)

    Parameters

    listener

    The event listener to be removed.