Udostępnij za pośrednictwem


RemoteControlClient Constructors

Definition

Overloads

RemoteControlClient(PendingIntent)
Obsolete.

Class constructor.

RemoteControlClient(PendingIntent, Looper)
Obsolete.

Class constructor for a remote control client whose internal event handling happens on a user-provided Looper.

RemoteControlClient(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

RemoteControlClient(PendingIntent)

Caution

deprecated

Class constructor.

[Android.Runtime.Register(".ctor", "(Landroid/app/PendingIntent;)V", "")]
[System.Obsolete("deprecated")]
public RemoteControlClient (Android.App.PendingIntent? mediaButtonIntent);
[<Android.Runtime.Register(".ctor", "(Landroid/app/PendingIntent;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Media.RemoteControlClient : Android.App.PendingIntent -> Android.Media.RemoteControlClient

Parameters

mediaButtonIntent
PendingIntent

The intent that will be sent for the media button events sent by remote controls. This intent needs to have been constructed with the Intent#ACTION_MEDIA_BUTTON action, and have a component that will handle the intent (set with Intent#setComponent(ComponentName)) registered with AudioManager#registerMediaButtonEventReceiver(ComponentName) before this new RemoteControlClient can itself be registered with AudioManager#registerRemoteControlClient(RemoteControlClient).

Attributes

Remarks

Class constructor.

Java documentation for android.media.RemoteControlClient.RemoteControlClient(android.app.PendingIntent).

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.

See also

Applies to

RemoteControlClient(PendingIntent, Looper)

Caution

deprecated

Class constructor for a remote control client whose internal event handling happens on a user-provided Looper.

[Android.Runtime.Register(".ctor", "(Landroid/app/PendingIntent;Landroid/os/Looper;)V", "")]
[System.Obsolete("deprecated")]
public RemoteControlClient (Android.App.PendingIntent? mediaButtonIntent, Android.OS.Looper? looper);
[<Android.Runtime.Register(".ctor", "(Landroid/app/PendingIntent;Landroid/os/Looper;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Media.RemoteControlClient : Android.App.PendingIntent * Android.OS.Looper -> Android.Media.RemoteControlClient

Parameters

mediaButtonIntent
PendingIntent

The intent that will be sent for the media button events sent by remote controls. This intent needs to have been constructed with the Intent#ACTION_MEDIA_BUTTON action, and have a component that will handle the intent (set with Intent#setComponent(ComponentName)) registered with AudioManager#registerMediaButtonEventReceiver(ComponentName) before this new RemoteControlClient can itself be registered with AudioManager#registerRemoteControlClient(RemoteControlClient).

looper
Looper

The Looper running the event loop.

Attributes

Remarks

Class constructor for a remote control client whose internal event handling happens on a user-provided Looper.

Java documentation for android.media.RemoteControlClient.RemoteControlClient(android.app.PendingIntent, android.os.Looper).

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.

See also

Applies to

RemoteControlClient(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected RemoteControlClient (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Media.RemoteControlClient : nativeint * Android.Runtime.JniHandleOwnership -> Android.Media.RemoteControlClient

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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