Share via


Session2CommandGroup.HasCommand Method

Definition

Overloads

HasCommand(Session2Command)

Checks whether this command group has a command that matches given command.

HasCommand(Int32)

Checks whether this command group has a command that matches given commandCode.

HasCommand(Session2Command)

Checks whether this command group has a command that matches given command.

[Android.Runtime.Register("hasCommand", "(Landroid/media/Session2Command;)Z", "", ApiSince=29)]
public bool HasCommand (Android.Media.Session2Command command);
[<Android.Runtime.Register("hasCommand", "(Landroid/media/Session2Command;)Z", "", ApiSince=29)>]
member this.HasCommand : Android.Media.Session2Command -> bool

Parameters

command
Session2Command

A command to find. Shouldn't be null.

Returns

Attributes

Remarks

Java documentation for android.media.Session2CommandGroup.hasCommand(android.media.Session2Command).

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

HasCommand(Int32)

Checks whether this command group has a command that matches given commandCode.

[Android.Runtime.Register("hasCommand", "(I)Z", "", ApiSince=29)]
public bool HasCommand (int commandCode);
[<Android.Runtime.Register("hasCommand", "(I)Z", "", ApiSince=29)>]
member this.HasCommand : int -> bool

Parameters

commandCode
Int32

A command code to find. Shouldn't be Session2Command#COMMAND_CODE_CUSTOM.

Returns

Attributes

Remarks

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