Share via


TvAdView.PrepareAdService(String, String) Method

Definition

Prepares the AD service of corresponding TvAdService.

[Android.Runtime.Register("prepareAdService", "(Ljava/lang/String;Ljava/lang/String;)V", "GetPrepareAdService_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=36)]
public virtual void PrepareAdService(string serviceId, string type);
[<Android.Runtime.Register("prepareAdService", "(Ljava/lang/String;Ljava/lang/String;)V", "GetPrepareAdService_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=36)>]
abstract member PrepareAdService : string * string -> unit
override this.PrepareAdService : string * string -> unit

Parameters

serviceId
String

the AD service ID, which can be found in TvAdServiceInfo#getId().

type
String
Attributes

Remarks

Prepares the AD service of corresponding TvAdService.

This should be called before calling #startAdService(). Otherwise, #startAdService() is a no-op.

Java documentation for android.media.tv.ad.TvAdView.prepareAdService(java.lang.String, java.lang.String).

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