共用方式為


TvAdManager.SendAppLinkCommand(String, Bundle) Method

Definition

Sends app link command.

[Android.Runtime.Register("sendAppLinkCommand", "(Ljava/lang/String;Landroid/os/Bundle;)V", "", ApiSince=36)]
public void SendAppLinkCommand(string serviceId, Android.OS.Bundle command);
[<Android.Runtime.Register("sendAppLinkCommand", "(Ljava/lang/String;Landroid/os/Bundle;)V", "", ApiSince=36)>]
member this.SendAppLinkCommand : string * Android.OS.Bundle -> unit

Parameters

serviceId
String

The ID of TV AD service which the command to be sent to. The ID can be found in TvAdServiceInfo#getId().

command
Bundle

The command to be sent. The command is a bundle with the following keys: <ul> <li>#APP_LINK_KEY_PACKAGE_NAME: The package name of the app to be launched. <li>#APP_LINK_KEY_CLASS_NAME: The class name of the app to be launched. <li>#APP_LINK_KEY_COMMAND_TYPE: The command type. <li>#APP_LINK_KEY_SERVICE_ID: The ID of the TV AD service. <li>#APP_LINK_KEY_BACK_URI: The URI to be used to return to the previous app. </ul>

Attributes

Remarks

Sends app link command.

Java documentation for android.media.tv.ad.TvAdManager.sendAppLinkCommand(java.lang.String, android.os.Bundle).

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