Class APSMediaPlayerClosableOverlayController

java.lang.Object
com.appscend.overlaycontrollers.APSMediaPlayerOverlayController
com.appscend.overlaycontrollers.APSMediaPlayerClosableOverlayController
All Implemented Interfaces:
KRAdapter
Direct Known Subclasses:
APSMediaPlayerHTMLOverlayController, APSMediaPlayerImageOverlayController

public class APSMediaPlayerClosableOverlayController extends APSMediaPlayerOverlayController
The APSMediaPlayerClosableOverlayController class is meant to be a superclass for overlay controllers that need to display a configurable close button to remove the overlay from screen. The class adds a set of standard keys to any overlay controller's own defined keys, to handle close button configuration. Methods are also exposed to allow a subclass to add and remove the close button from its view stack.
  • Field Details

    • kAPSCloseImage

      public static final String kAPSCloseImage
      if set to a UIImage, that image will be used instead of the standard progress-wheel close button.
      See Also:
    • kAPSCloseSize

      public static final String kAPSCloseSize
      a Number representing the length of a side of the close button square, in points. Defaults to 16.
      See Also:
    • kAPSCloseBackgroundColor

      public static final String kAPSCloseBackgroundColor
      the background color of the close button view. Set this to a Color or a String containing the hex color representation. Defaults to [Color clearColor].
      See Also:
    • kAPSCloseXColor

      public static final String kAPSCloseXColor
      the color of the X symbol in the center of the player. Set this to a String containing the hex color representation. Defaults to [Color darkGrayColor].
      See Also:
    • kAPSCloseProgressColor

      public static final String kAPSCloseProgressColor
      the color of the circular bar that indicates the currently elapsed time until the close button can be tapped. Set this to a String containing the hex color reprezentation. Defaults to [Color darkGrayColor].
      See Also:
    • kAPSCloseProgressTrackColor

      public static final String kAPSCloseProgressTrackColor
      the color of the circular bar that indicates the total time until the close button can be tapped. Set this to a NString containing the hex color reprezentation. Defaults to [Color lightGrayColor].
      See Also:
    • kAPSCloseOffsetX

      public static final String kAPSCloseOffsetX
      the horizontal offset of the close button, relative to the right margin of the overlay's view. Set this to a Number. Defaults to 0.
      See Also:
    • kAPSCloseOffsetY

      public static final String kAPSCloseOffsetY
      the vertical offset of the close button, relative to the top margin of the overlay's view. Set this to a Number. Defaults to 0.
      See Also:
    • kAPSCloseInitialAlpha

      public static final String kAPSCloseInitialAlpha
      a Number indicating the opacity of the close button before it is activated for receiving taps. Defaults to 0.5.
      See Also:
    • kAPSCloseFinalAlpha

      public static final String kAPSCloseFinalAlpha
      a Number indicating the opacity of the close button after it has been activated for receiving taps. Defaults to 0.7.
      See Also:
    • kAPSCloseHidden

      public static final String kAPSCloseHidden
      set this key to @YES to skip displaying the close button for this overlay. Defaults to @NO.
      See Also:
    • kAPSCloseOffset

      public static final String kAPSCloseOffset
      a Number that indicates the offset, in seconds, after which the close button should become activated for receiving taps. Defaults to 3.
      See Also:
    • kAPSCloseTrackingURLs

      public static final String kAPSCloseTrackingURLs
      a Array of URLs that will be tracked by the player when the close button is tapped and the overlay is removed (see [APSMediaPlayer track:forEvent:type:]).
      See Also:
  • Constructor Details

    • APSMediaPlayerClosableOverlayController

      public APSMediaPlayerClosableOverlayController()
  • Method Details