共用方式為


Session2Command Constructors

Definition

Overloads

Session2Command(Int32)

Constructor for creating a command predefined in AndroidX media2.

Session2Command(String, Bundle)

Constructor for creating a custom command.

Session2Command(Int32)

Constructor for creating a command predefined in AndroidX media2.

[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=29)]
public Session2Command (int commandCode);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=29)>]
new Android.Media.Session2Command : int -> Android.Media.Session2Command

Parameters

commandCode
Int32

A command code for a command predefined in AndroidX media2.

Attributes

Remarks

Java documentation for android.media.Session2Command.Session2Command(int).

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

Session2Command(String, Bundle)

Constructor for creating a custom command.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/os/Bundle;)V", "", ApiSince=29)]
public Session2Command (string action, Android.OS.Bundle? extras);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/os/Bundle;)V", "", ApiSince=29)>]
new Android.Media.Session2Command : string * Android.OS.Bundle -> Android.Media.Session2Command

Parameters

action
String

The action of this custom command.

extras
Bundle

An extra bundle for this custom command.

Attributes

Remarks

Java documentation for android.media.Session2Command.Session2Command(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