Package com.naver.ads.video.vast
Interface VastParser
-
- All Implemented Interfaces:
public interface VastParserThe class that provides methods to fetch and parse a VAST document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classVastParser.PreOptimizationOptionsDefines parameters that pre-optimize the vast response.
public classVastParser.Companion
-
Method Summary
Modifier and Type Method Description abstract Unitparse(VastRequestSource source, VastParserOptions options, VastParserListener listener)Parses the given VastRequestSource and VastParserOptions into a ResolvedVast synchronously. abstract Unitparse(VastRequestSource source, VastParserOptions options, VastParserListener listener, Boolean enableDiskCache)Parses the given VastRequestSource and VastParserOptions into a ResolvedVast synchronously. abstract ResolvedVastparseAsync(VastRequestSource source, VastParserOptions options)Parses the given VastRequestSource into a ResolvedVast asynchronously. -
-
Method Detail
-
parse
abstract Unit parse(VastRequestSource source, VastParserOptions options, VastParserListener listener)
Parses the given VastRequestSource and VastParserOptions into a ResolvedVast synchronously.
- Parameters:
source- the source to be resolved.options- the options to be used in the parsing process.listener- the listener to be notified about the parsing process.
-
parse
abstract Unit parse(VastRequestSource source, VastParserOptions options, VastParserListener listener, Boolean enableDiskCache)
Parses the given VastRequestSource and VastParserOptions into a ResolvedVast synchronously.
- Parameters:
source- the source to be resolved.options- the options to be used in the parsing process.listener- the listener to be notified about the parsing process.enableDiskCache- a value that identifies whether disk cache is enabled.
-
parseAsync
@WorkerThread() abstract ResolvedVast parseAsync(VastRequestSource source, VastParserOptions options)
Parses the given VastRequestSource into a ResolvedVast asynchronously. Returns a fully parsed ResolvedVast
- Parameters:
source- the source to be resolved.options- the options to be used in the parsing process.- Returns:
the represents a parsed VAST response.
-
-
-
-