mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
1212 lines
55 KiB
HTML
1212 lines
55 KiB
HTML
<!DOCTYPE HTML>
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png"><link rel="manifest" href="/assets/site.webmanifest"><link rel="mask-icon" href="/assets/safari-pinned-tab.svg" color="#fc4d50"><link rel="shortcut icon" href="/assets/favicon.ico"><meta name="msapplication-TileColor" content="#ffc40d"><meta name="msapplication-config" content="/assets/browserconfig.xml"><meta name="theme-color" content="#ffffff"><!-- end favicons snippet -->
|
|
<title>Cue (ExoPlayer library)</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
|
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
|
|
<script type="text/javascript" src="../../../../../script.js"></script>
|
|
<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script>
|
|
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
|
|
<!--[if IE]>
|
|
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
|
|
<![endif]-->
|
|
<script type="text/javascript" src="../../../../../jquery/jquery-3.5.1.js"></script>
|
|
<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="Cue (ExoPlayer library)";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var data = {"i0":10};
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
var pathtoroot = "../../../../../";
|
|
var useModuleDirectories = false;
|
|
loadScripts(document, 'script');</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<header role="banner">
|
|
<nav role="navigation">
|
|
<div class="fixedNav">
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a id="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a id="navbar.top.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../../index.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../../../allclasses.html">All Classes</a></li>
|
|
</ul>
|
|
<ul class="navListSearch">
|
|
<li><label for="search">SEARCH:</label>
|
|
<input type="text" id="search" value="search" disabled="disabled">
|
|
<input type="reset" id="reset" value="reset" disabled="disabled">
|
|
</li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested.class.summary">Nested</a> | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
</div>
|
|
<div class="navPadding"> </div>
|
|
<script type="text/javascript"><!--
|
|
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|
//-->
|
|
</script>
|
|
</nav>
|
|
</header>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<main role="main">
|
|
<div class="header">
|
|
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">com.google.android.exoplayer2.text</a></div>
|
|
<h2 title="Class Cue" class="title">Class Cue</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li><a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">java.lang.Object</a></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>com.google.android.exoplayer2.text.Cue</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<hr>
|
|
<pre>public final class <span class="typeNameLabel">Cue</span>
|
|
extends <a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></pre>
|
|
<div class="block">Contains information about a specific cue, including textual content and formatting data.</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="nested.class.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Nested Class Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colSecond" scope="col">Class</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static interface </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Cue.AnchorType.html" title="annotation in com.google.android.exoplayer2.text">Cue.AnchorType</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The type of anchor, which may be unset.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Cue.Builder.html" title="class in com.google.android.exoplayer2.text">Cue.Builder</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">A builder for <a href="Cue.html" title="class in com.google.android.exoplayer2.text"><code>Cue</code></a> objects.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static interface </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Cue.LineType.html" title="annotation in com.google.android.exoplayer2.text">Cue.LineType</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The type of line, which may be unset.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static interface </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Cue.TextSizeType.html" title="annotation in com.google.android.exoplayer2.text">Cue.TextSizeType</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The type of default text size for this cue, which may be unset.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static interface </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Cue.VerticalType.html" title="annotation in com.google.android.exoplayer2.text">Cue.VerticalType</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The type of vertical layout for this cue, which may be unset (i.e.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="field.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colSecond" scope="col">Field</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ANCHOR_TYPE_END">ANCHOR_TYPE_END</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Anchors the right (for horizontal positions) or bottom (for vertical positions) edge of the cue
|
|
box.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ANCHOR_TYPE_MIDDLE">ANCHOR_TYPE_MIDDLE</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Anchors the middle of the cue box.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ANCHOR_TYPE_START">ANCHOR_TYPE_START</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Anchors the left (for horizontal positions) or top (for vertical positions) edge of the cue
|
|
box.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="https://developer.android.com/reference/android/graphics/Bitmap.html" title="class or interface in android.graphics" class="externalLink" target="_top">Bitmap</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#bitmap">bitmap</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The cue image, or null if this is a text cue.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#bitmapHeight">bitmapHeight</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The bitmap height as a fraction of the of the viewport size, or <a href="#DIMEN_UNSET"><code>DIMEN_UNSET</code></a> if the
|
|
bitmap should be displayed at its natural height given the bitmap dimensions and the specified
|
|
<a href="#size"><code>size</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#DIMEN_UNSET">DIMEN_UNSET</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">An unset position, width or size.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static <a href="Cue.html" title="class in com.google.android.exoplayer2.text">Cue</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EMPTY">EMPTY</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The empty cue.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#line">line</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The position of the cue box within the viewport in the direction orthogonal to the writing
|
|
direction (determined by <a href="#verticalType"><code>verticalType</code></a>), or <a href="#DIMEN_UNSET"><code>DIMEN_UNSET</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#LINE_TYPE_FRACTION">LINE_TYPE_FRACTION</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Value for <a href="#lineType"><code>lineType</code></a> when <a href="#line"><code>line</code></a> is a fractional position.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#LINE_TYPE_NUMBER">LINE_TYPE_NUMBER</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Value for <a href="#lineType"><code>lineType</code></a> when <a href="#line"><code>line</code></a> is a line number.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lineAnchor">lineAnchor</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The cue box anchor positioned by <a href="#line"><code>line</code></a> when <a href="#lineType"><code>lineType</code></a> is <a href="#LINE_TYPE_FRACTION"><code>LINE_TYPE_FRACTION</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lineType">lineType</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The type of the <a href="#line"><code>line</code></a> value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="https://developer.android.com/reference/android/text/Layout.Alignment.html" title="class or interface in android.text" class="externalLink" target="_top">Layout.Alignment</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#multiRowAlignment">multiRowAlignment</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The alignment of multiple lines of text relative to the longest line, or null if the alignment
|
|
is undefined.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#position">position</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The fractional position of the <a href="#positionAnchor"><code>positionAnchor</code></a> of the cue box within the viewport in
|
|
the direction orthogonal to <a href="#line"><code>line</code></a>, or <a href="#DIMEN_UNSET"><code>DIMEN_UNSET</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#positionAnchor">positionAnchor</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The cue box anchor positioned by <a href="#position"><code>position</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#shearDegrees">shearDegrees</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The shear angle in degrees to be applied to this Cue, expressed in graphics coordinates.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#size">size</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The size of the cue box in the writing direction specified as a fraction of the viewport size
|
|
in that direction, or <a href="#DIMEN_UNSET"><code>DIMEN_UNSET</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#text">text</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The cue text, or null if this is an image cue.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#TEXT_SIZE_TYPE_ABSOLUTE">TEXT_SIZE_TYPE_ABSOLUTE</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Text size is measured in number of pixels.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#TEXT_SIZE_TYPE_FRACTIONAL">TEXT_SIZE_TYPE_FRACTIONAL</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Text size is measured as a fraction of the viewport size minus the view padding.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#TEXT_SIZE_TYPE_FRACTIONAL_IGNORE_PADDING">TEXT_SIZE_TYPE_FRACTIONAL_IGNORE_PADDING</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Text size is measured as a fraction of the viewport size, ignoring the view padding</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="https://developer.android.com/reference/android/text/Layout.Alignment.html" title="class or interface in android.text" class="externalLink" target="_top">Layout.Alignment</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#textAlignment">textAlignment</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The alignment of the cue text within the cue box, or null if the alignment is undefined.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#textSize">textSize</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The default text size for this cue's text, or <a href="#DIMEN_UNSET"><code>DIMEN_UNSET</code></a> if this cue has no default
|
|
text size.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#textSizeType">textSizeType</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The default text size type for this cue's text, or <a href="#TYPE_UNSET"><code>TYPE_UNSET</code></a> if this cue has no
|
|
default text size.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#TYPE_UNSET">TYPE_UNSET</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">An unset anchor, line, text size or vertical type value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#VERTICAL_TYPE_LR">VERTICAL_TYPE_LR</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Vertical left-to-right (e.g.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#VERTICAL_TYPE_RL">VERTICAL_TYPE_RL</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Vertical right-to-left (e.g.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#verticalType">verticalType</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The vertical formatting of this Cue, or <a href="#TYPE_UNSET"><code>TYPE_UNSET</code></a> if the cue has no vertical setting
|
|
(and so should be horizontal).</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#windowColor">windowColor</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The fill color of the window.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#windowColorSet">windowColorSet</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Specifies whether or not the <a href="#windowColor"><code>windowColor</code></a> property is set.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="constructor.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Constructor</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.CharSequence)">Cue</a></span>​(<a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a> text)</code></th>
|
|
<td class="colLast">
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="deprecationComment">Use <a href="Cue.Builder.html" title="class in com.google.android.exoplayer2.text"><code>Cue.Builder</code></a>.</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.CharSequence,android.text.Layout.Alignment,float,int,int,float,int,float)">Cue</a></span>​(<a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a> text,
|
|
<a href="https://developer.android.com/reference/android/text/Layout.Alignment.html" title="class or interface in android.text" class="externalLink" target="_top">Layout.Alignment</a> textAlignment,
|
|
float line,
|
|
int lineType,
|
|
int lineAnchor,
|
|
float position,
|
|
int positionAnchor,
|
|
float size)</code></th>
|
|
<td class="colLast">
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="deprecationComment">Use <a href="Cue.Builder.html" title="class in com.google.android.exoplayer2.text"><code>Cue.Builder</code></a>.</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.CharSequence,android.text.Layout.Alignment,float,int,int,float,int,float,boolean,int)">Cue</a></span>​(<a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a> text,
|
|
<a href="https://developer.android.com/reference/android/text/Layout.Alignment.html" title="class or interface in android.text" class="externalLink" target="_top">Layout.Alignment</a> textAlignment,
|
|
float line,
|
|
int lineType,
|
|
int lineAnchor,
|
|
float position,
|
|
int positionAnchor,
|
|
float size,
|
|
boolean windowColorSet,
|
|
int windowColor)</code></th>
|
|
<td class="colLast">
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="deprecationComment">Use <a href="Cue.Builder.html" title="class in com.google.android.exoplayer2.text"><code>Cue.Builder</code></a>.</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.CharSequence,android.text.Layout.Alignment,float,int,int,float,int,float,int,float)">Cue</a></span>​(<a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a> text,
|
|
<a href="https://developer.android.com/reference/android/text/Layout.Alignment.html" title="class or interface in android.text" class="externalLink" target="_top">Layout.Alignment</a> textAlignment,
|
|
float line,
|
|
int lineType,
|
|
int lineAnchor,
|
|
float position,
|
|
int positionAnchor,
|
|
float size,
|
|
int textSizeType,
|
|
float textSize)</code></th>
|
|
<td class="colLast">
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="deprecationComment">Use <a href="Cue.Builder.html" title="class in com.google.android.exoplayer2.text"><code>Cue.Builder</code></a>.</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colSecond" scope="col">Method</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code><a href="Cue.Builder.html" title="class in com.google.android.exoplayer2.text">Cue.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#buildUpon()">buildUpon</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns a new <a href="Cue.Builder.html" title="class in com.google.android.exoplayer2.text"><code>Cue.Builder</code></a> initialized with the same values as this Cue.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.<a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></h3>
|
|
<code><a href="https://developer.android.com/reference/java/lang/Object.html#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink" target="_top">wait</a></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="field.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a id="EMPTY">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>EMPTY</h4>
|
|
<pre>public static final <a href="Cue.html" title="class in com.google.android.exoplayer2.text">Cue</a> EMPTY</pre>
|
|
<div class="block">The empty cue.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="DIMEN_UNSET">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>DIMEN_UNSET</h4>
|
|
<pre>public static final float DIMEN_UNSET</pre>
|
|
<div class="block">An unset position, width or size.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer2.text.Cue.DIMEN_UNSET">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="TYPE_UNSET">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TYPE_UNSET</h4>
|
|
<pre>public static final int TYPE_UNSET</pre>
|
|
<div class="block">An unset anchor, line, text size or vertical type value.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer2.text.Cue.TYPE_UNSET">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="ANCHOR_TYPE_START">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ANCHOR_TYPE_START</h4>
|
|
<pre>public static final int ANCHOR_TYPE_START</pre>
|
|
<div class="block">Anchors the left (for horizontal positions) or top (for vertical positions) edge of the cue
|
|
box.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer2.text.Cue.ANCHOR_TYPE_START">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="ANCHOR_TYPE_MIDDLE">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ANCHOR_TYPE_MIDDLE</h4>
|
|
<pre>public static final int ANCHOR_TYPE_MIDDLE</pre>
|
|
<div class="block">Anchors the middle of the cue box.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer2.text.Cue.ANCHOR_TYPE_MIDDLE">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="ANCHOR_TYPE_END">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>ANCHOR_TYPE_END</h4>
|
|
<pre>public static final int ANCHOR_TYPE_END</pre>
|
|
<div class="block">Anchors the right (for horizontal positions) or bottom (for vertical positions) edge of the cue
|
|
box.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer2.text.Cue.ANCHOR_TYPE_END">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="LINE_TYPE_FRACTION">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>LINE_TYPE_FRACTION</h4>
|
|
<pre>public static final int LINE_TYPE_FRACTION</pre>
|
|
<div class="block">Value for <a href="#lineType"><code>lineType</code></a> when <a href="#line"><code>line</code></a> is a fractional position.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer2.text.Cue.LINE_TYPE_FRACTION">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="LINE_TYPE_NUMBER">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>LINE_TYPE_NUMBER</h4>
|
|
<pre>public static final int LINE_TYPE_NUMBER</pre>
|
|
<div class="block">Value for <a href="#lineType"><code>lineType</code></a> when <a href="#line"><code>line</code></a> is a line number.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer2.text.Cue.LINE_TYPE_NUMBER">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="TEXT_SIZE_TYPE_FRACTIONAL">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TEXT_SIZE_TYPE_FRACTIONAL</h4>
|
|
<pre>public static final int TEXT_SIZE_TYPE_FRACTIONAL</pre>
|
|
<div class="block">Text size is measured as a fraction of the viewport size minus the view padding.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer2.text.Cue.TEXT_SIZE_TYPE_FRACTIONAL">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="TEXT_SIZE_TYPE_FRACTIONAL_IGNORE_PADDING">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TEXT_SIZE_TYPE_FRACTIONAL_IGNORE_PADDING</h4>
|
|
<pre>public static final int TEXT_SIZE_TYPE_FRACTIONAL_IGNORE_PADDING</pre>
|
|
<div class="block">Text size is measured as a fraction of the viewport size, ignoring the view padding</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer2.text.Cue.TEXT_SIZE_TYPE_FRACTIONAL_IGNORE_PADDING">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="TEXT_SIZE_TYPE_ABSOLUTE">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TEXT_SIZE_TYPE_ABSOLUTE</h4>
|
|
<pre>public static final int TEXT_SIZE_TYPE_ABSOLUTE</pre>
|
|
<div class="block">Text size is measured in number of pixels.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer2.text.Cue.TEXT_SIZE_TYPE_ABSOLUTE">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="VERTICAL_TYPE_RL">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>VERTICAL_TYPE_RL</h4>
|
|
<pre>public static final int VERTICAL_TYPE_RL</pre>
|
|
<div class="block">Vertical right-to-left (e.g. for Japanese).</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer2.text.Cue.VERTICAL_TYPE_RL">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="VERTICAL_TYPE_LR">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>VERTICAL_TYPE_LR</h4>
|
|
<pre>public static final int VERTICAL_TYPE_LR</pre>
|
|
<div class="block">Vertical left-to-right (e.g. for Mongolian).</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer2.text.Cue.VERTICAL_TYPE_LR">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="text">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>text</h4>
|
|
<pre>@Nullable
|
|
public final <a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a> text</pre>
|
|
<div class="block">The cue text, or null if this is an image cue. Note the <a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top"><code>CharSequence</code></a> may be decorated
|
|
with styling spans.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="textAlignment">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>textAlignment</h4>
|
|
<pre>@Nullable
|
|
public final <a href="https://developer.android.com/reference/android/text/Layout.Alignment.html" title="class or interface in android.text" class="externalLink" target="_top">Layout.Alignment</a> textAlignment</pre>
|
|
<div class="block">The alignment of the cue text within the cue box, or null if the alignment is undefined.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="multiRowAlignment">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>multiRowAlignment</h4>
|
|
<pre>@Nullable
|
|
public final <a href="https://developer.android.com/reference/android/text/Layout.Alignment.html" title="class or interface in android.text" class="externalLink" target="_top">Layout.Alignment</a> multiRowAlignment</pre>
|
|
<div class="block">The alignment of multiple lines of text relative to the longest line, or null if the alignment
|
|
is undefined.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="bitmap">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>bitmap</h4>
|
|
<pre>@Nullable
|
|
public final <a href="https://developer.android.com/reference/android/graphics/Bitmap.html" title="class or interface in android.graphics" class="externalLink" target="_top">Bitmap</a> bitmap</pre>
|
|
<div class="block">The cue image, or null if this is a text cue.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="line">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>line</h4>
|
|
<pre>public final float line</pre>
|
|
<div class="block">The position of the cue box within the viewport in the direction orthogonal to the writing
|
|
direction (determined by <a href="#verticalType"><code>verticalType</code></a>), or <a href="#DIMEN_UNSET"><code>DIMEN_UNSET</code></a>. When set, the
|
|
interpretation of the value depends on the value of <a href="#lineType"><code>lineType</code></a>.
|
|
|
|
<p>The measurement direction depends on <a href="#verticalType"><code>verticalType</code></a>:
|
|
|
|
<ul>
|
|
<li>For <a href="#TYPE_UNSET"><code>TYPE_UNSET</code></a> (i.e. horizontal), this is the vertical position relative to the
|
|
top of the viewport.
|
|
<li>For <a href="#VERTICAL_TYPE_LR"><code>VERTICAL_TYPE_LR</code></a> this is the horizontal position relative to the left of the
|
|
viewport.
|
|
<li>For <a href="#VERTICAL_TYPE_RL"><code>VERTICAL_TYPE_RL</code></a> this is the horizontal position relative to the right of
|
|
the viewport.
|
|
</ul></div>
|
|
</li>
|
|
</ul>
|
|
<a id="lineType">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lineType</h4>
|
|
<pre><a href="Cue.LineType.html" title="annotation in com.google.android.exoplayer2.text">@LineType</a>
|
|
public final int lineType</pre>
|
|
<div class="block">The type of the <a href="#line"><code>line</code></a> value.
|
|
|
|
<ul>
|
|
<li><a href="#LINE_TYPE_FRACTION"><code>LINE_TYPE_FRACTION</code></a> indicates that <a href="#line"><code>line</code></a> is a fractional position within
|
|
the viewport (measured to the part of the cue box determined by <a href="#lineAnchor"><code>lineAnchor</code></a>).
|
|
<li><a href="#LINE_TYPE_NUMBER"><code>LINE_TYPE_NUMBER</code></a> indicates that <a href="#line"><code>line</code></a> is a viewport line number. The
|
|
viewport is divided into lines (each equal in size to the first line of the cue box). The
|
|
cue box is positioned to align with the viewport lines as follows:
|
|
<ul>
|
|
<li><a href="#lineAnchor"><code>lineAnchor</code></a>) is ignored.
|
|
<li>When <code>line</code> is greater than or equal to 0 the first line in the cue box is
|
|
aligned with a viewport line, with 0 meaning the first line of the viewport.
|
|
<li>When <code>line</code> is negative the last line in the cue box is aligned with a
|
|
viewport line, with -1 meaning the last line of the viewport.
|
|
<li>For horizontal text the start and end of the viewport are the top and bottom
|
|
respectively.
|
|
</ul>
|
|
</ul></div>
|
|
</li>
|
|
</ul>
|
|
<a id="lineAnchor">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>lineAnchor</h4>
|
|
<pre><a href="Cue.AnchorType.html" title="annotation in com.google.android.exoplayer2.text">@AnchorType</a>
|
|
public final int lineAnchor</pre>
|
|
<div class="block">The cue box anchor positioned by <a href="#line"><code>line</code></a> when <a href="#lineType"><code>lineType</code></a> is <a href="#LINE_TYPE_FRACTION"><code>LINE_TYPE_FRACTION</code></a>.
|
|
|
|
<p>One of:
|
|
|
|
<ul>
|
|
<li><a href="#ANCHOR_TYPE_START"><code>ANCHOR_TYPE_START</code></a>
|
|
<li><a href="#ANCHOR_TYPE_MIDDLE"><code>ANCHOR_TYPE_MIDDLE</code></a>
|
|
<li><a href="#ANCHOR_TYPE_END"><code>ANCHOR_TYPE_END</code></a>
|
|
<li><a href="#TYPE_UNSET"><code>TYPE_UNSET</code></a>
|
|
</ul>
|
|
|
|
<p>For the normal case of horizontal text, <a href="#ANCHOR_TYPE_START"><code>ANCHOR_TYPE_START</code></a>, <a href="#ANCHOR_TYPE_MIDDLE"><code>ANCHOR_TYPE_MIDDLE</code></a> and <a href="#ANCHOR_TYPE_END"><code>ANCHOR_TYPE_END</code></a> correspond to the top, middle and bottom of
|
|
the cue box respectively.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="position">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>position</h4>
|
|
<pre>public final float position</pre>
|
|
<div class="block">The fractional position of the <a href="#positionAnchor"><code>positionAnchor</code></a> of the cue box within the viewport in
|
|
the direction orthogonal to <a href="#line"><code>line</code></a>, or <a href="#DIMEN_UNSET"><code>DIMEN_UNSET</code></a>.
|
|
|
|
<p>The measurement direction depends on <a href="#verticalType"><code>verticalType</code></a>.
|
|
|
|
<ul>
|
|
<li>For <a href="#TYPE_UNSET"><code>TYPE_UNSET</code></a> (i.e. horizontal), this is the horizontal position relative to
|
|
the left of the viewport. Note that positioning is relative to the left of the viewport
|
|
even in the case of right-to-left text.
|
|
<li>For <a href="#VERTICAL_TYPE_LR"><code>VERTICAL_TYPE_LR</code></a> and <a href="#VERTICAL_TYPE_RL"><code>VERTICAL_TYPE_RL</code></a> (i.e. vertical), this is the
|
|
vertical position relative to the top of the viewport.
|
|
</ul></div>
|
|
</li>
|
|
</ul>
|
|
<a id="positionAnchor">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>positionAnchor</h4>
|
|
<pre><a href="Cue.AnchorType.html" title="annotation in com.google.android.exoplayer2.text">@AnchorType</a>
|
|
public final int positionAnchor</pre>
|
|
<div class="block">The cue box anchor positioned by <a href="#position"><code>position</code></a>. One of <a href="#ANCHOR_TYPE_START"><code>ANCHOR_TYPE_START</code></a>, <a href="#ANCHOR_TYPE_MIDDLE"><code>ANCHOR_TYPE_MIDDLE</code></a>, <a href="#ANCHOR_TYPE_END"><code>ANCHOR_TYPE_END</code></a> and <a href="#TYPE_UNSET"><code>TYPE_UNSET</code></a>.
|
|
|
|
<p>For the normal case of horizontal text, <a href="#ANCHOR_TYPE_START"><code>ANCHOR_TYPE_START</code></a>, <a href="#ANCHOR_TYPE_MIDDLE"><code>ANCHOR_TYPE_MIDDLE</code></a> and <a href="#ANCHOR_TYPE_END"><code>ANCHOR_TYPE_END</code></a> correspond to the left, middle and right of
|
|
the cue box respectively.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="size">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>size</h4>
|
|
<pre>public final float size</pre>
|
|
<div class="block">The size of the cue box in the writing direction specified as a fraction of the viewport size
|
|
in that direction, or <a href="#DIMEN_UNSET"><code>DIMEN_UNSET</code></a>.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="bitmapHeight">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>bitmapHeight</h4>
|
|
<pre>public final float bitmapHeight</pre>
|
|
<div class="block">The bitmap height as a fraction of the of the viewport size, or <a href="#DIMEN_UNSET"><code>DIMEN_UNSET</code></a> if the
|
|
bitmap should be displayed at its natural height given the bitmap dimensions and the specified
|
|
<a href="#size"><code>size</code></a>.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="windowColorSet">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>windowColorSet</h4>
|
|
<pre>public final boolean windowColorSet</pre>
|
|
<div class="block">Specifies whether or not the <a href="#windowColor"><code>windowColor</code></a> property is set.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="windowColor">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>windowColor</h4>
|
|
<pre>public final int windowColor</pre>
|
|
<div class="block">The fill color of the window.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="textSizeType">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>textSizeType</h4>
|
|
<pre><a href="Cue.TextSizeType.html" title="annotation in com.google.android.exoplayer2.text">@TextSizeType</a>
|
|
public final int textSizeType</pre>
|
|
<div class="block">The default text size type for this cue's text, or <a href="#TYPE_UNSET"><code>TYPE_UNSET</code></a> if this cue has no
|
|
default text size.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="textSize">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>textSize</h4>
|
|
<pre>public final float textSize</pre>
|
|
<div class="block">The default text size for this cue's text, or <a href="#DIMEN_UNSET"><code>DIMEN_UNSET</code></a> if this cue has no default
|
|
text size.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="verticalType">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>verticalType</h4>
|
|
<pre><a href="Cue.VerticalType.html" title="annotation in com.google.android.exoplayer2.text">@VerticalType</a>
|
|
public final int verticalType</pre>
|
|
<div class="block">The vertical formatting of this Cue, or <a href="#TYPE_UNSET"><code>TYPE_UNSET</code></a> if the cue has no vertical setting
|
|
(and so should be horizontal).</div>
|
|
</li>
|
|
</ul>
|
|
<a id="shearDegrees">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>shearDegrees</h4>
|
|
<pre>public final float shearDegrees</pre>
|
|
<div class="block">The shear angle in degrees to be applied to this Cue, expressed in graphics coordinates. This
|
|
results in a skew transform for the block along the inline progression axis.</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a id="<init>(java.lang.CharSequence)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>Cue</h4>
|
|
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
|
|
public Cue​(<a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a> text)</pre>
|
|
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="deprecationComment">Use <a href="Cue.Builder.html" title="class in com.google.android.exoplayer2.text"><code>Cue.Builder</code></a>.</div>
|
|
</div>
|
|
<div class="block">Creates a text cue whose <a href="#textAlignment"><code>textAlignment</code></a> is null, whose type parameters are set to
|
|
<a href="#TYPE_UNSET"><code>TYPE_UNSET</code></a> and whose dimension parameters are set to <a href="#DIMEN_UNSET"><code>DIMEN_UNSET</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>text</code> - See <a href="#text"><code>text</code></a>.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="<init>(java.lang.CharSequence,android.text.Layout.Alignment,float,int,int,float,int,float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>Cue</h4>
|
|
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
|
|
public Cue​(<a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a> text,
|
|
@Nullable
|
|
<a href="https://developer.android.com/reference/android/text/Layout.Alignment.html" title="class or interface in android.text" class="externalLink" target="_top">Layout.Alignment</a> textAlignment,
|
|
float line,
|
|
<a href="Cue.LineType.html" title="annotation in com.google.android.exoplayer2.text">@LineType</a>
|
|
int lineType,
|
|
<a href="Cue.AnchorType.html" title="annotation in com.google.android.exoplayer2.text">@AnchorType</a>
|
|
int lineAnchor,
|
|
float position,
|
|
<a href="Cue.AnchorType.html" title="annotation in com.google.android.exoplayer2.text">@AnchorType</a>
|
|
int positionAnchor,
|
|
float size)</pre>
|
|
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="deprecationComment">Use <a href="Cue.Builder.html" title="class in com.google.android.exoplayer2.text"><code>Cue.Builder</code></a>.</div>
|
|
</div>
|
|
<div class="block">Creates a text cue.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>text</code> - See <a href="#text"><code>text</code></a>.</dd>
|
|
<dd><code>textAlignment</code> - See <a href="#textAlignment"><code>textAlignment</code></a>.</dd>
|
|
<dd><code>line</code> - See <a href="#line"><code>line</code></a>.</dd>
|
|
<dd><code>lineType</code> - See <a href="#lineType"><code>lineType</code></a>.</dd>
|
|
<dd><code>lineAnchor</code> - See <a href="#lineAnchor"><code>lineAnchor</code></a>.</dd>
|
|
<dd><code>position</code> - See <a href="#position"><code>position</code></a>.</dd>
|
|
<dd><code>positionAnchor</code> - See <a href="#positionAnchor"><code>positionAnchor</code></a>.</dd>
|
|
<dd><code>size</code> - See <a href="#size"><code>size</code></a>.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="<init>(java.lang.CharSequence,android.text.Layout.Alignment,float,int,int,float,int,float,int,float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>Cue</h4>
|
|
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
|
|
public Cue​(<a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a> text,
|
|
@Nullable
|
|
<a href="https://developer.android.com/reference/android/text/Layout.Alignment.html" title="class or interface in android.text" class="externalLink" target="_top">Layout.Alignment</a> textAlignment,
|
|
float line,
|
|
<a href="Cue.LineType.html" title="annotation in com.google.android.exoplayer2.text">@LineType</a>
|
|
int lineType,
|
|
<a href="Cue.AnchorType.html" title="annotation in com.google.android.exoplayer2.text">@AnchorType</a>
|
|
int lineAnchor,
|
|
float position,
|
|
<a href="Cue.AnchorType.html" title="annotation in com.google.android.exoplayer2.text">@AnchorType</a>
|
|
int positionAnchor,
|
|
float size,
|
|
<a href="Cue.TextSizeType.html" title="annotation in com.google.android.exoplayer2.text">@TextSizeType</a>
|
|
int textSizeType,
|
|
float textSize)</pre>
|
|
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="deprecationComment">Use <a href="Cue.Builder.html" title="class in com.google.android.exoplayer2.text"><code>Cue.Builder</code></a>.</div>
|
|
</div>
|
|
<div class="block">Creates a text cue.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>text</code> - See <a href="#text"><code>text</code></a>.</dd>
|
|
<dd><code>textAlignment</code> - See <a href="#textAlignment"><code>textAlignment</code></a>.</dd>
|
|
<dd><code>line</code> - See <a href="#line"><code>line</code></a>.</dd>
|
|
<dd><code>lineType</code> - See <a href="#lineType"><code>lineType</code></a>.</dd>
|
|
<dd><code>lineAnchor</code> - See <a href="#lineAnchor"><code>lineAnchor</code></a>.</dd>
|
|
<dd><code>position</code> - See <a href="#position"><code>position</code></a>.</dd>
|
|
<dd><code>positionAnchor</code> - See <a href="#positionAnchor"><code>positionAnchor</code></a>.</dd>
|
|
<dd><code>size</code> - See <a href="#size"><code>size</code></a>.</dd>
|
|
<dd><code>textSizeType</code> - See <a href="#textSizeType"><code>textSizeType</code></a>.</dd>
|
|
<dd><code>textSize</code> - See <a href="#textSize"><code>textSize</code></a>.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="<init>(java.lang.CharSequence,android.text.Layout.Alignment,float,int,int,float,int,float,boolean,int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>Cue</h4>
|
|
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
|
|
public Cue​(<a href="https://developer.android.com/reference/java/lang/CharSequence.html" title="class or interface in java.lang" class="externalLink" target="_top">CharSequence</a> text,
|
|
@Nullable
|
|
<a href="https://developer.android.com/reference/android/text/Layout.Alignment.html" title="class or interface in android.text" class="externalLink" target="_top">Layout.Alignment</a> textAlignment,
|
|
float line,
|
|
<a href="Cue.LineType.html" title="annotation in com.google.android.exoplayer2.text">@LineType</a>
|
|
int lineType,
|
|
<a href="Cue.AnchorType.html" title="annotation in com.google.android.exoplayer2.text">@AnchorType</a>
|
|
int lineAnchor,
|
|
float position,
|
|
<a href="Cue.AnchorType.html" title="annotation in com.google.android.exoplayer2.text">@AnchorType</a>
|
|
int positionAnchor,
|
|
float size,
|
|
boolean windowColorSet,
|
|
int windowColor)</pre>
|
|
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="deprecationComment">Use <a href="Cue.Builder.html" title="class in com.google.android.exoplayer2.text"><code>Cue.Builder</code></a>.</div>
|
|
</div>
|
|
<div class="block">Creates a text cue.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>text</code> - See <a href="#text"><code>text</code></a>.</dd>
|
|
<dd><code>textAlignment</code> - See <a href="#textAlignment"><code>textAlignment</code></a>.</dd>
|
|
<dd><code>line</code> - See <a href="#line"><code>line</code></a>.</dd>
|
|
<dd><code>lineType</code> - See <a href="#lineType"><code>lineType</code></a>.</dd>
|
|
<dd><code>lineAnchor</code> - See <a href="#lineAnchor"><code>lineAnchor</code></a>.</dd>
|
|
<dd><code>position</code> - See <a href="#position"><code>position</code></a>.</dd>
|
|
<dd><code>positionAnchor</code> - See <a href="#positionAnchor"><code>positionAnchor</code></a>.</dd>
|
|
<dd><code>size</code> - See <a href="#size"><code>size</code></a>.</dd>
|
|
<dd><code>windowColorSet</code> - See <a href="#windowColorSet"><code>windowColorSet</code></a>.</dd>
|
|
<dd><code>windowColor</code> - See <a href="#windowColor"><code>windowColor</code></a>.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a id="buildUpon()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>buildUpon</h4>
|
|
<pre class="methodSignature">public <a href="Cue.Builder.html" title="class in com.google.android.exoplayer2.text">Cue.Builder</a> buildUpon()</pre>
|
|
<div class="block">Returns a new <a href="Cue.Builder.html" title="class in com.google.android.exoplayer2.text"><code>Cue.Builder</code></a> initialized with the same values as this Cue.</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<footer role="contentinfo">
|
|
<nav role="navigation">
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a id="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a id="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../../index.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../../../allclasses.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li><a href="#nested.class.summary">Nested</a> | </li>
|
|
<li><a href="#field.summary">Field</a> | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li><a href="#field.detail">Field</a> | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</nav>
|
|
</footer>
|
|
</body>
|
|
</html>
|