AmpFirebaseManager
@objc
open class AmpFirebaseManager : NSObject
extension AmpFirebaseManager: PlayerEventObserver
Class in charge of managing the integration between the AMP SDK and the Firebase Analytics.
-
Creates a new instance of the AmpFirebaseManager.
Declaration
Swift
public init(player: AmpPlayer, trackingList: [AmpTracking], fbArgs: AmpFirebaseArgs? = nil)
Parameters
player
Instance of the player that is going to be linked to Firebase.
trackingList
The list of events to track.
fbArgs
Parameters that will be sent with the events.
-
Logs a custom event.
Declaration
Swift
public func logEvent(eventType:AmpTracking, eventName:String, params:[String:Any]?)
Parameters
eventType
The event type. The parameters corresponding to this event type will be sent.
eventName
The event name to track. Refer to Analytics Events.
params
Parameters that will be sent with the event. Refer to Analytics Parameters.
-
Declaration
Swift
public func willHandleUrl(_ ampPlayer: AmpPlayer)
-
Declaration
Swift
public func onBufferingStateChanged(_ ampPlayer: AmpPlayer)
-
Declaration
Swift
public func onPlaybackStateChanged(_ ampPlayer: AmpPlayer)
-
Declaration
Swift
public func onSeekBegan()
-
Declaration
Swift
public func onBitrateChanged(_ ampPlayer: AmpPlayer, bitrate: Double)
-
Declaration
Swift
public func onHandledDidBecomeActive(_ ampPlayer: AmpPlayer)
-
Declaration
Swift
public func onHandledResignActive(_ ampPlayer: AmpPlayer)
-
Declaration
Swift
public func onAmpError(_ ampPlayer: AmpPlayer, error: PlayerError, code: Int, message: String)
-
Declaration
Swift
public func onAdBreakStarted(break: AdBreakInfo?)
-
Declaration
Swift
public func onAdBreakEnded(break: AdBreakInfo?)
-
Declaration
Swift
public func onAdStarted(ad: AdInfo?)
-
Declaration
Swift
public func onAdEnded(ad: AdInfo?)
-
Declaration
Swift
public func onAdRequestCompleted()
-
Declaration
Swift
public func onAdError(error: NSObject)
-
Declaration
Swift
public func onToggleClosedCaption(_ isCaptionOn: Bool, lang: String?)