TvAdServiceInfo
public
final
class
TvAdServiceInfo
extends Object
implements
Parcelable
java.lang.Object | |
↳ | android.media.tv.ad.TvAdServiceInfo |
This class is used to specify meta information of a TV AD service.
Summary
Inherited constants |
---|
Fields | |
---|---|
public
static
final
Creator<TvAdServiceInfo> |
CREATOR
|
Public constructors | |
---|---|
TvAdServiceInfo(Context context, ComponentName component)
Constructs a TvAdServiceInfo object. |
Public methods | |
---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
String
|
getId()
Returns a unique ID for this TV AD service. |
ServiceInfo
|
getServiceInfo()
Returns the information of the service that implements this AD service. |
List<String>
|
getSupportedTypes()
Gets supported TV AD types. |
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
---|---|
Fields
Public constructors
TvAdServiceInfo
public TvAdServiceInfo (Context context, ComponentName component)
Constructs a TvAdServiceInfo object.
Parameters | |
---|---|
context |
Context : the application context |
component |
ComponentName : the component name of the TvAdService |
Public methods
describeContents
public int describeContents ()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of writeToParcel(android.os.Parcel, int)
,
the return value of this method must include the
CONTENTS_FILE_DESCRIPTOR
bit.
Returns | |
---|---|
int |
a bitmask indicating the set of special object types marshaled
by this Parcelable object instance.
Value is either 0 or CONTENTS_FILE_DESCRIPTOR |
getId
public String getId ()
Returns a unique ID for this TV AD service. The ID is generated from the package and class name implementing the TV AD service.
Returns | |
---|---|
String |
getServiceInfo
public ServiceInfo getServiceInfo ()
Returns the information of the service that implements this AD service.
Returns | |
---|---|
ServiceInfo |
This value may be null . |
getSupportedTypes
public List<String> getSupportedTypes ()
Gets supported TV AD types.
Returns | |
---|---|
List<String> |
writeToParcel
public void writeToParcel (Parcel dest, int flags)
Flatten this object in to a Parcel.
Parameters | |
---|---|
dest |
Parcel : The Parcel in which the object should be written.
This value cannot be null . |
flags |
int : Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE .
Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |