public class APSMediaPlayerImageOverlayController extends APSMediaPlayerClosableOverlayController
To create an APSMediaOverlay of image type:
type property to APSImageOverlayset the overlay object&'s properties property to a HashMap that can have the following keys and values:
String representing the URL that should be launched when the overlay is tapped.ArrayList of String objects that will be tracked by the player when the overlay is tapped (see [APSMediaPlayer trackforEvent:]). Note that the kAPSImageOverlayClickthrough key must also be set for tracking to happen.ArrayList of String objects that will be tracked by the player when the overlay is displayed (see [APSMediaPlayer trackforEvent:]).String representing the image to be loaded.ArrayList of String objects that will be tracked by the player when there is an error loading the image (see [APSMediaPlayer trackforEvent:]).String containing the hex color representation. Defaults to [UIColor clearColor]. kAPSImageOverlayStretchMode: String representing the possible ways of scaling the image in the overlay surface. Possible values are:
ScaleType to ScaleType.FIT_CENTERScaleType to ScaleType.CENTER_CROPScaleType to ScaleType.FIT_XYScaleType to ScaleType.MATRIX and will align the elements to the bottomScaleType to ScaleType.MATRIX and will align the elements to the topScaleType to ScaleType.MATRIX and will align the elements to the leftScaleType to ScaleType.MATRIX and will align the elements to the right| Modifier and Type | Class and Description |
|---|---|
static class |
APSMediaPlayerImageOverlayController.getImageAsync |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
APSImageOverlay |
static java.lang.String |
kAPSImageOverlayBackgroundColor |
static java.lang.String |
kAPSImageOverlayClickthrough |
static java.lang.String |
kAPSImageOverlayClicktracking |
static java.lang.String |
kAPSImageOverlayErrorURLs |
static java.lang.String |
kAPSImageOverlayResourceURL |
static java.lang.String |
kAPSImageOverlayStretchMode |
static java.lang.String |
kAPSImageOverlayViewtracking |
static java.lang.String |
kAPSImageOverlayWebviewDismissAction |
kAPSCloseBackgroundColor, kAPSCloseFinalAlpha, kAPSCloseHidden, kAPSCloseImage, kAPSCloseInitialAlpha, kAPSCloseOffset, kAPSCloseOffsetX, kAPSCloseOffsetY, kAPSCloseProgressColor, kAPSCloseProgressTrackColor, kAPSCloseSize, kAPSCloseTrackingURLs, kAPSCloseXColoroverlay| Constructor and Description |
|---|
APSMediaPlayerImageOverlayController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addViewToContainer(ViewGroup viewGroup) |
float |
getAlpha() |
View |
getView() |
void |
hideOverlay() |
void |
load(Context context) |
void |
preload() |
java.lang.String |
type() |
activateButton, removeCloseButtonrefreshpublic static final java.lang.String kAPSImageOverlayClickthrough
public static final java.lang.String kAPSImageOverlayClicktracking
public static final java.lang.String kAPSImageOverlayViewtracking
public static final java.lang.String kAPSImageOverlayResourceURL
public static final java.lang.String kAPSImageOverlayErrorURLs
public static final java.lang.String kAPSImageOverlayBackgroundColor
public static final java.lang.String kAPSImageOverlayStretchMode
public static final java.lang.String kAPSImageOverlayWebviewDismissAction
public static final java.lang.String APSImageOverlay
public APSMediaPlayerImageOverlayController()
public java.lang.String type()
type in interface KRAdaptertype in class APSMediaPlayerClosableOverlayControllerpublic void load(Context context)
load in class APSMediaPlayerClosableOverlayControllerpublic void addViewToContainer(ViewGroup viewGroup)
addViewToContainer in class APSMediaPlayerClosableOverlayControllerpublic View getView()
getView in class APSMediaPlayerClosableOverlayControllerpublic void hideOverlay()
hideOverlay in class APSMediaPlayerClosableOverlayControllerpublic float getAlpha()
getAlpha in class APSMediaPlayerClosableOverlayControllerpublic void preload()