PlayerViewEventsApi
@MainActor
@objc(BMPPlayerViewEventsApi)
public class PlayerViewEventsApi : NSObject
The Obj-C version of the player view events API. It is empty on purpose as Combine-based event subscriptions can only be used from Swift.
-
Returns a publisher for the specified
PlayerViewEvent
type that occurs on thePlayerView
. It publishes all events for this view with the specified type. This publisher can never fail.Declaration
Swift
@MainActor func on<T>(_ eventType: T.Type) -> AnyPublisher<T, Never> where T : PlayerViewEvent
Parameters
eventType
type of the event
Return Value
publisher for the given
PlayerViewEvent
type.