public static final class TvInputInfo.Builder
extends Object
| java.lang.Object | |
| android.media.tv.TvInputInfo.Builder | |
用于创建 TvInputInfo对象的便捷构建器。
Public constructors |
|
|---|---|
TvInputInfo.Builder(Context context, ComponentName component) 为 |
|
公共方法(Public methods) |
|
|---|---|
TvInputInfo |
build() 用指定的字段创建一个 |
TvInputInfo.Builder |
setCanRecord(boolean canRecord) 设置此电视输入是否可以录制电视节目。 |
TvInputInfo.Builder |
setExtras(Bundle extras) 设置与此电视输入关联的特定于域的附加内容。 |
TvInputInfo.Builder |
setTunerCount(int tunerCount) 设置调谐器计数。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
TvInputInfo.Builder (Context context, ComponentName component)
为 TvInputInfo构建一个新的构建器。
| 参数(Parameters) | |
|---|---|
context |
Context: A Context of the application package implementing this class. |
component |
ComponentName: The name of the application component to be used for the TvInputService. |
TvInputInfo build ()
用指定的字段创建一个TvInputInfo实例。 大多数的信息是通过解析AndroidManifest并获得SERVICE_META_DATA为TvInputService这款电视输入实现。
| 返回(Returns) | |
|---|---|
TvInputInfo |
TvInputInfo containing information about this TV input. |
TvInputInfo.Builder setCanRecord (boolean canRecord)
设置此电视输入是否可以录制电视节目。
| 参数(Parameters) | |
|---|---|
canRecord |
boolean: Whether this TV input can record TV programs. |
| 返回(Returns) | |
|---|---|
TvInputInfo.Builder |
This Builder object to allow for chaining of calls to builder methods. |
TvInputInfo.Builder setExtras (Bundle extras)
设置与此电视输入关联的特定于域的附加内容。
| 参数(Parameters) | |
|---|---|
extras |
Bundle: Domain-specific extras associated with this TV input. Keys must be a scoped name, i.e. prefixed with a package name you own, so that different developers will not create conflicting keys. |
| 返回(Returns) | |
|---|---|
TvInputInfo.Builder |
This Builder object to allow for chaining of calls to builder methods. |
TvInputInfo.Builder setTunerCount (int tunerCount)
设置调谐器计数。 仅适用于TYPE_TUNER 。
| 参数(Parameters) | |
|---|---|
tunerCount |
int: The number of tuners this TV input has. |
| 返回(Returns) | |
|---|---|
TvInputInfo.Builder |
This Builder object to allow for chaining of calls to builder methods. |