toggle menu
Brightcove Player SDK for Android 10.1.2
10.1.2
pulse
switch theme
search in API
pulse
/
com.brightcove.pulse
/
PulseAdView
Pulse
Ad
View
open
class
PulseAdView
Represents the view of an Ad.
Members
Constructors
Pulse
Ad
View
Link copied to clipboard
constructor
(
context
:
Context
)
Constructor.
constructor
(
context
:
Context
,
attrs
:
AttributeSet
)
Constructor.
constructor
(
context
:
Context
,
attrs
:
AttributeSet
,
defStyleAttr
:
Int
)
Constructor.
Types
Listener
Link copied to clipboard
interface
Listener
Listener to trigger UI events related to the Ad playback.
Functions
dispatch
Key
Event
Link copied to clipboard
open
fun
dispatchKeyEvent
(
event
:
KeyEvent
)
:
Boolean
on
Ad
Completed
Link copied to clipboard
open
fun
onAdCompleted
(
ad
:
AdAsset
)
on
Ad
Paused
Link copied to clipboard
open
fun
onAdPaused
(
ad
:
AdAsset
)
on
Ad
Progress
Link copied to clipboard
open
fun
onAdProgress
(
position
:
Long
,
adAsset
:
AdAsset
)
on
Ad
Resumed
Link copied to clipboard
open
fun
onAdResumed
(
ad
:
AdAsset
)
on
Ad
Skipped
Link copied to clipboard
open
fun
onAdSkipped
(
ad
:
AdAsset
)
on
Ad
Started
Link copied to clipboard
open
fun
onAdStarted
(
adAsset
:
AdAsset
)
on
Click
Link copied to clipboard
open
fun
onClick
(
v
:
View
)
on
Duration
Changed
Link copied to clipboard
open
fun
onDurationChanged
(
duration
:
Long
)
on
Error
Link copied to clipboard
open
fun
onError
(
adAsset
:
AdAsset
,
e
:
Exception
)
set
Listener
Link copied to clipboard
open
fun
setListener
(
listener
:
PulseAdView.Listener
)
Sets the listener.