Language

AdRequest Constructors

Definition

Overloads

Name Description
AdRequest(Int32, AdRequestType, Uri, Int64, Int64, Int64, Bundle)

Creates an advertisement request using a URI.

AdRequest(Int32, Int32, ParcelFileDescriptor, Int64, Int64, Int64, String, Bundle)

Creates an advertisement request using a file descriptor.

AdRequest(Int32, AdRequestType, Uri, Int64, Int64, Int64, Bundle)

Creates an advertisement request using a URI.

[Android.Runtime.Register(".ctor", "(IILandroid/net/Uri;JJJLandroid/os/Bundle;)V", "", ApiSince=34)]
public AdRequest(int id, Android.Media.TV.AdRequestType requestType, Android.Net.Uri? uri, long startTime, long stopTime, long echoInterval, Android.OS.Bundle metadata);
[<Android.Runtime.Register(".ctor", "(IILandroid/net/Uri;JJJLandroid/os/Bundle;)V", "", ApiSince=34)>]
new Android.Media.TV.AdRequest : int * Android.Media.TV.AdRequestType * Android.Net.Uri * int64 * int64 * int64 * Android.OS.Bundle -> Android.Media.TV.AdRequest

Parameters

id
Int32

The identifier stored in the request.

requestType
AdRequestType

Value is one of the following: REQUEST_TYPE_START; REQUEST_TYPE_STOP

uri
Uri

The URI stored in the request.

startTime
Int64

The start time, in milliseconds, to store.

stopTime
Int64

The stop time, in milliseconds, to store.

echoInterval
Int64

The echo interval, in milliseconds, to store.

metadata
Bundle

The metadata bundle stored in the request.

Attributes

Remarks

Android reference for android.media.tv.AdRequest.AdRequest.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

AdRequest(Int32, Int32, ParcelFileDescriptor, Int64, Int64, Int64, String, Bundle)

Creates an advertisement request using a file descriptor.

[Android.Runtime.Register(".ctor", "(IILandroid/os/ParcelFileDescriptor;JJJLjava/lang/String;Landroid/os/Bundle;)V", "", ApiSince=33)]
public AdRequest(int id, int requestType, Android.OS.ParcelFileDescriptor? fileDescriptor, long startTime, long stopTime, long echoInterval, string? mediaFileType, Android.OS.Bundle metadata);
[<Android.Runtime.Register(".ctor", "(IILandroid/os/ParcelFileDescriptor;JJJLjava/lang/String;Landroid/os/Bundle;)V", "", ApiSince=33)>]
new Android.Media.TV.AdRequest : int * int * Android.OS.ParcelFileDescriptor * int64 * int64 * int64 * string * Android.OS.Bundle -> Android.Media.TV.AdRequest

Parameters

id
Int32

The identifier stored in the request.

requestType
Int32

Value is one of the following: REQUEST_TYPE_START; REQUEST_TYPE_STOP

fileDescriptor
ParcelFileDescriptor

The file descriptor stored in the request.

startTime
Int64

The start time, in milliseconds, to store.

stopTime
Int64

The stop time, in milliseconds, to store.

echoInterval
Int64

The echo interval, in milliseconds, to store.

mediaFileType
String

The media file type stored in the request.

metadata
Bundle

The metadata bundle stored in the request.

Attributes

Remarks

Android reference for android.media.tv.AdRequest.AdRequest.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to