GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazePlayerEntryPointDelegate - iOS

BlazePlayerEntryPointDelegate is a struct that implements BlazePlayerSourceDelegate defining the methods for a player displayed from an entry point, such as handleUniversalLink, directPlaying, etc.

You can implement the following methods.

If you don't set the optional sourceId, onDataLoadStarted and onDataLoadComplete use sourceId as the string representation of the data source type. The entry point delegate can prepare data for multiple data sources, so each needs a clear identifier. Methods such as onPlayerDidAppear and onPlayerDidDismiss run for a single player instance, so sourceId is nil.

On top of BlazePlayerSourceDelegate functions, the following functions are available:

onReadStatusChangedHandler

Called when the read status of the content changes.

  • playerType - The type of the player.
  • sourceId - The unique identifier of the player's source.
  • dataSourceStringRepresentation - The data source type used to filter the content.
  • isEntireContentRead - Whether the entire content collection is considered read.
  • itemReadStatus - Dictionary mapping item IDs to their read status.
typealias onReadStatusChangedHandler = ((
	 playerType: BlazePlayerType, 
   sourceId: String?, 
   dataSourceStringRepresentation: String, 
   isEntireContentRead: Bool, 
   itemReadStatus: [String, Bool]
)) -> Void


var onReadStatusChanged: onReadStatusChangedHandler? { get }

Did this page help you?