Language

PlaybackState.CustomAction.Builder Constructors

Definition

Overloads

Name Description
PlaybackState.CustomAction.Builder(String, ICharSequence, Int32)

Creates a CustomAction builder with the id, name, and icon set.

PlaybackState.CustomAction.Builder(String, String, Int32)

Creates a CustomAction builder with the id, name, and icon set.

PlaybackState.CustomAction.Builder(String, ICharSequence, Int32)

Creates a CustomAction builder with the id, name, and icon set.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;I)V", "")]
public Builder(string? action, Java.Lang.ICharSequence? name, int icon);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;I)V", "")>]
new Android.Media.Session.PlaybackState.CustomAction.Builder : string * Java.Lang.ICharSequence * int -> Android.Media.Session.PlaybackState.CustomAction.Builder

Parameters

action
String

The action of the CustomAction.

name
ICharSequence

The display name of the CustomAction. This name will be displayed along side the action if the UI supports it.

icon
Int32

The icon resource id of the CustomAction. This resource id must be in the same package as the MediaSession. It will be displayed with the custom action if the UI supports it.

Attributes

Remarks

Creates a CustomAction builder with the id, name, and icon set.

Android reference for android.media.session.PlaybackState.CustomAction.Builder.Builder.

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

PlaybackState.CustomAction.Builder(String, String, Int32)

Creates a CustomAction builder with the id, name, and icon set.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;I)V", "")]
public Builder(string? action, string? name, int icon);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/CharSequence;I)V", "")>]
new Android.Media.Session.PlaybackState.CustomAction.Builder : string * string * int -> Android.Media.Session.PlaybackState.CustomAction.Builder

Parameters

action
String

The action of the CustomAction.

name
String

The display name of the CustomAction. This name will be displayed along side the action if the UI supports it.

icon
Int32

The icon resource id of the CustomAction. This resource id must be in the same package as the MediaSession. It will be displayed with the custom action if the UI supports it.

Attributes

Remarks

Creates a CustomAction builder with the id, name, and icon set.

Android reference for android.media.session.PlaybackState.CustomAction.Builder.Builder.

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