Partager via


TvContract.ActionInitializePrograms Field

Definition

Broadcast Action: sent to the target TV input after it is first installed to notify the input to initialize its channels and programs to the system content provider.

[Android.Runtime.Register("ACTION_INITIALIZE_PROGRAMS", ApiSince=26)]
public const string ActionInitializePrograms;
[<Android.Runtime.Register("ACTION_INITIALIZE_PROGRAMS", ApiSince=26)>]
val mutable ActionInitializePrograms : string

Field Value

Attributes

Remarks

Broadcast Action: sent to the target TV input after it is first installed to notify the input to initialize its channels and programs to the system content provider.

Note that this intent is sent only on devices with android.content.pm.PackageManager#FEATURE_LEANBACK enabled. Besides that, in order to receive this intent, the target TV input must: <ul> <li>Declare a broadcast receiver for this intent in its AndroidManifest.xml.</li> <li>Declare appropriate permissions to write channel and program data in its AndroidManifest.xml.</li> </ul>

Java documentation for android.media.tv.TvContract.ACTION_INITIALIZE_PROGRAMS.

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