RemoteControlClient Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.
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
- 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.