com.ooyala.android.ads.vast.TimeOffset Class Reference

This class is used to hold a VAST 3.0 time offset value. More...

Classes

enum  Type
 

Public Member Functions

Type getType ()
 
double getPercentage ()
 
double getSeconds ()
 
int getPosition ()
 

Static Public Member Functions

static TimeOffset parseOffset (String offsetString)
 Parse a time offset string to a time offset object. More...
 

Static Public Attributes

static int MAX_OFFSET = Integer.MAX_VALUE / 1024
 

Detailed Description

This class is used to hold a VAST 3.0 time offset value.

Supported format:

  1. Seconds in HH:MM:SS.MMM, e.g. 01:30:20.250
  2. Percentage end up with a %, e.g. 20%
  3. Predefined position starting with #, e.g. #1

Member Function Documentation

double com.ooyala.android.ads.vast.TimeOffset.getPercentage ( )
Returns
the percentage time offset, negative if this is not a percentage time offset.
int com.ooyala.android.ads.vast.TimeOffset.getPosition ( )
Returns
the position time offset, negative if this is not a position time offset.
double com.ooyala.android.ads.vast.TimeOffset.getSeconds ( )
Returns
the second time offset, negative if this is not a second time offset.
Type com.ooyala.android.ads.vast.TimeOffset.getType ( )
Returns
the time offset type
static TimeOffset com.ooyala.android.ads.vast.TimeOffset.parseOffset ( String  offsetString)
static

Parse a time offset string to a time offset object.

Parameters
offsetStringthe offset string.
Returns
the time offset object, null if the string is not formatted properly.

Member Data Documentation

int com.ooyala.android.ads.vast.TimeOffset.MAX_OFFSET = Integer.MAX_VALUE / 1024
static