CEMediaView
Overview
Interface
delegate
delegate
Declaration
Discussion
Delegate which is notified by SDK when CEMediaView
success/fail to updating its UI with an CENativeAd
.
nativeAd
nativeAd
Declaration
Discussion
Setting this property to an CEMediaView
object updates its UI immediately. You can set this property
autoplayEnabled
autoplayEnabled
Declaration
Discussion
Setting autoplayEnabled
to YES
means its associated native ad starts when CEMediaView
is visible by user.
- initWithNativeAd:
- initWithNativeAd:
Declaration
Parameters
name
description
nativeAd
A CENativeAd
object containing ad information from SDK.
Return Value
A CEMediaView
instance.
Discussion
Use this initializer to create a CEMediaView
instance when you have a loaded native ad. This is equivalent to calling [CEMediaView initWithVideowProfile:]
with CEVideoViewProfileDefaultProfile
and [CEMediaView setNativeAd:]
.
- initWithVideowProfile:
- initWithVideowProfile:
Declaration
Parameters
name
description
viewProfile
An option used to specify the layout and behavior of loaded ad.
Return Value
A CEMediaView
instance.
Discussion
Use this initializer if you are creating a CEMediaView
in advance of your CENativeAd
got loaded. The native ad can be assigned later when it is loaded.
- destroy
- destroy
Declaration
Discussion
Use this method to destroy the cache ad in media view before discarding a CEMediaView
.
- play
- play
Declaration
Discussion
Invoking this method marks the ad as allowed to play. A ad starts when it is both marked as allowed to play and visible to users.
- stop
- stop
Declaration
Discussion
Invoking this method marks the ad as not allowed to play. A ad stops immediately when stop
is invoked and it will never resume until play
is invoked.
- mute
- mute
Declaration
Discussion
Invoking this method turns off the volume of the ad immediately.
- unmute
- unmute
Declaration
Discussion
Invoking this method turns on the volume of the ad immediately.
- isMute
- isMute
Declaration
Return Value
YES
if the ad is audible; otherwise, NO
;
- setTouchEffectWithColor:
- setTouchEffectWithColor:
Declaration
Parameters
name
description
highlightColor
The color of a CEMediaView
in UIControlStateHighlighted
state
Discussion
When touch effect is enabled through setting up CEVideoViewProfileTouchEffect
, you can change the color of the CEMediaView
with this method.
- setVideoReplayMode:
- setVideoReplayMode:
Declaration
Discussion
This method is deprecated. You should set CEVideoViewProfileAutoReplay
with [CEMediaView initWithVideowProfile:]
instead.
Last updated