BCOVPUISlider Class Reference
Inherits from | UISlider |
---|---|
Declared in | BCOVPUISlider.h |
Overview
A subclass of UISlider that provides a “buffered” track with markers for advertising or generic use, plus an “advertising mode” used to display progress of an ad.
trackHeight
Height of the track area Default value is 5.
@property (nonatomic, readwrite) CGFloat trackHeight
Discussion
Height of the track area Default value is 5.
Declared In
BCOVPUISlider.h
bufferProgress
The amount of buffer. This value will be pinned to min/max.
@property (nonatomic, readwrite) float bufferProgress
Discussion
The amount of buffer. This value will be pinned to min/max.
Declared In
BCOVPUISlider.h
bumperModeActive
Set to YES to change the slider’s UI to the bumper mode. In bumper mode this hides the buffering indicator, hides markers, and sets the min/max track colors to bumperMinimumTrackTintColor and bumperMaximumTrackTintColor.
@property (nonatomic, readwrite) BOOL bumperModeActive
Discussion
Set to YES to change the slider’s UI to the bumper mode. In bumper mode this hides the buffering indicator, hides markers, and sets the min/max track colors to bumperMinimumTrackTintColor and bumperMaximumTrackTintColor.
Declared In
BCOVPUISlider.h
advertisingMode
Set to YES to change the slider’s UI to the advertising mode. In advertising mode this hides the buffering indicator, hides markers, and sets the min/max track colors to advertisingMinimumTrackTintColor and advertisingMaximumTrackTintColor.
@property (nonatomic, readwrite) BOOL advertisingMode
Discussion
Set to YES to change the slider’s UI to the advertising mode. In advertising mode this hides the buffering indicator, hides markers, and sets the min/max track colors to advertisingMinimumTrackTintColor and advertisingMaximumTrackTintColor.
Declared In
BCOVPUISlider.h
bufferProgressTintColor
The tint color to be used for the buffered area.
@property (nonatomic) UIColor *bufferProgressTintColor
Discussion
The tint color to be used for the buffered area.
Declared In
BCOVPUISlider.h
bumperMinimumTrackTintColor
The tint color used for the minimum track area when in bumper mode. The default bumper minimum track color is purple.
@property (nonatomic) UIColor *bumperMinimumTrackTintColor
Discussion
The tint color used for the minimum track area when in bumper mode. The default bumper minimum track color is purple.
Declared In
BCOVPUISlider.h
bumperMaximumTrackTintColor
The tint color used for the maximum track area when in bumper mode. The default bumper minimum track color is dark gray.
@property (nonatomic) UIColor *bumperMaximumTrackTintColor
Discussion
The tint color used for the maximum track area when in bumper mode. The default bumper minimum track color is dark gray.
Declared In
BCOVPUISlider.h
advertisingMinimumTrackTintColor
The tint color used for the minimum track area when in advertising mode. This color is also used for ad ticks marks in normal mode. The default advertising minimum track color is yellow.
@property (nonatomic) UIColor *advertisingMinimumTrackTintColor
Discussion
The tint color used for the minimum track area when in advertising mode. This color is also used for ad ticks marks in normal mode. The default advertising minimum track color is yellow.
Declared In
BCOVPUISlider.h
advertisingMaximumTrackTintColor
The tint color used for the maximum track area when in advertising mode. The default advertising minimum track color is dark gray.
@property (nonatomic) UIColor *advertisingMaximumTrackTintColor
Discussion
The tint color used for the maximum track area when in advertising mode. The default advertising minimum track color is dark gray.
Declared In
BCOVPUISlider.h
markerTickColor
The color used for the generic markers drawn in the track area when no custom marker images are supplied. The default generic marker color is white. Set to nil to restore the default color.
@property (nonatomic) UIColor *markerTickColor
Discussion
The color used for the generic markers drawn in the track area when no custom marker images are supplied. The default generic marker color is white. Set to nil to restore the default color.
Declared In
BCOVPUISlider.h
duration
The duration (in seconds) represented by the range of the slider. Used for positioning markers. The default value is 30, but should be set to the length of its associated video. The duration will be set automatically for the progress slider installed into the PlayerUI at playerView.controlsView.progressSlider.
@property (nonatomic, readwrite) double duration
Discussion
The duration (in seconds) represented by the range of the slider. Used for positioning markers. The default value is 30, but should be set to the length of its associated video. The duration will be set automatically for the progress slider installed into the PlayerUI at playerView.controlsView.progressSlider.
Declared In
BCOVPUISlider.h
– addMarkerAt:duration:isAd:image:
Add a marker that will be displayed on the slider at a specific location.
- (void)addMarkerAt:(double)position duration:(double)duration isAd:(BOOL)isAd image:(UIImage *)image
Parameters
position |
The location (in seconds) on the slider where the marker should be placed. See the “duration” property for related details. |
---|---|
duration |
The duration represented by the tick mark; can be set to zero to draw the smallest size marker (2 pixels wide). |
isAd |
YES indicates this marker represents an ad (drawn in yellow by default). NO indicates this is a generic marker (drawn in white by default). |
image |
An optional image that will be drawn in place of the default marker indicator. Can be set to nil. |
Discussion
Add a marker that will be displayed on the slider at a specific location.
Declared In
BCOVPUISlider.h
– removeMarkerAtPosition:
Remove all markers at the specified position.
- (void)removeMarkerAtPosition:(double)position
Parameters
position |
The location on the slider (in seconds) of the marker to be removed. |
---|
Discussion
Remove all markers at the specified position.
Declared In
BCOVPUISlider.h
– removeAllMarkers
Remove all markers from the slider.
- (void)removeAllMarkers
Discussion
Remove all markers from the slider.
Declared In
BCOVPUISlider.h
– removeGenericMarkers
Remove all generic markers from the slider.
- (void)removeGenericMarkers
Discussion
Remove all generic markers from the slider.
Declared In
BCOVPUISlider.h
– removeAdMarkers
Remove all ad markers from the slider.
- (void)removeAdMarkers
Discussion
Remove all ad markers from the slider.
Declared In
BCOVPUISlider.h
– setCustomMinimumTrackImage:forState:
Set a custom minimum track image to be used in normal (non-advertising) mode.
- (void)setCustomMinimumTrackImage:(UIImage *)image forState:(UIControlState)state
Parameters
image |
The image to be used on the minimum end of the track (typically the left side of the thumb). The image should be a resizeable UIImage, ‘trackHeight’ pixels high. When a custom image is set, markers will no longer be displayed. Set to nil to restore the default track images. |
---|---|
state |
The UIControlState for which this image will be active. |
Discussion
Set a custom minimum track image to be used in normal (non-advertising) mode.
Declared In
BCOVPUISlider.h
– setCustomMaximumTrackImage:forState:
Set a custom maximum track image to be used in normal (non-advertising) mode.
- (void)setCustomMaximumTrackImage:(UIImage *)image forState:(UIControlState)state
Parameters
image |
The image to be used on the maximum end of the track (typically the left side of the thumb). The image should be a resizeable UIImage, ‘trackHeight’ pixels high. When a custom image is set, markers will no longer be displayed. Set to nil to restore the default track images. |
---|---|
state |
The UIControlState for which this image will be active. |
Discussion
Set a custom maximum track image to be used in normal (non-advertising) mode.
Declared In
BCOVPUISlider.h