Notification.MediaStyle.SetRemotePlaybackInfo Method
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
| Name | Description |
|---|---|
| SetRemotePlaybackInfo(ICharSequence, Int32, PendingIntent) |
For media notifications associated with playback on a remote device, provide device information that will replace the default values for the output switcher chip on the media control, as well as an intent to use when the output switcher chip is tapped, on devices where this is supported. |
| SetRemotePlaybackInfo(String, Int32, PendingIntent) |
For media notifications associated with playback on a remote device, provide device information that will replace the default values for the output switcher chip on the media control, as well as an intent to use when the output switcher chip is tapped, on devices where this is supported. |
SetRemotePlaybackInfo(ICharSequence, Int32, PendingIntent)
For media notifications associated with playback on a remote device, provide device information that will replace the default values for the output switcher chip on the media control, as well as an intent to use when the output switcher chip is tapped, on devices where this is supported.
[Android.Runtime.Register("setRemotePlaybackInfo", "(Ljava/lang/CharSequence;ILandroid/app/PendingIntent;)Landroid/app/Notification$MediaStyle;", "GetSetRemotePlaybackInfo_Ljava_lang_CharSequence_ILandroid_app_PendingIntent_Handler", ApiSince=34)]
public virtual Android.App.Notification.MediaStyle SetRemotePlaybackInfo(Java.Lang.ICharSequence deviceName, int iconResource, Android.App.PendingIntent? chipIntent);
[<Android.Runtime.Register("setRemotePlaybackInfo", "(Ljava/lang/CharSequence;ILandroid/app/PendingIntent;)Landroid/app/Notification$MediaStyle;", "GetSetRemotePlaybackInfo_Ljava_lang_CharSequence_ILandroid_app_PendingIntent_Handler", ApiSince=34)>]
abstract member SetRemotePlaybackInfo : Java.Lang.ICharSequence * int * Android.App.PendingIntent -> Android.App.Notification.MediaStyle
override this.SetRemotePlaybackInfo : Java.Lang.ICharSequence * int * Android.App.PendingIntent -> Android.App.Notification.MediaStyle
Parameters
- deviceName
- ICharSequence
CharSequence: the name of the remote device to display. This value cannot be null.
- iconResource
- Int32
int: icon resource representing the device
- chipIntent
- PendingIntent
PendingIntent: PendingIntent to send when the output switcher is tapped. May be null, in which case the output switcher will be disabled. This intent should open an Activity or it will be ignored.
Returns
MediaStyle. This value cannot be null.
- Attributes
Remarks
For media notifications associated with playback on a remote device, provide device information that will replace the default values for the output switcher chip on the media control, as well as an intent to use when the output switcher chip is tapped, on devices where this is supported. This method is intended for system applications to provide information and/or functionality that would otherwise be unavailable to the default output switcher because the media originated on a remote device. Requires Manifest.permission.MEDIA_CONTENT_CONTROL
Android reference for android.app.Notification.MediaStyle.setRemotePlaybackInfo.
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
SetRemotePlaybackInfo(String, Int32, PendingIntent)
For media notifications associated with playback on a remote device, provide device information that will replace the default values for the output switcher chip on the media control, as well as an intent to use when the output switcher chip is tapped, on devices where this is supported.
public Android.App.Notification.MediaStyle SetRemotePlaybackInfo(string deviceName, int iconResource, Android.App.PendingIntent? chipIntent);
member this.SetRemotePlaybackInfo : string * int * Android.App.PendingIntent -> Android.App.Notification.MediaStyle
Parameters
- deviceName
- String
CharSequence: the name of the remote device to display. This value cannot be null.
- iconResource
- Int32
int: icon resource representing the device
- chipIntent
- PendingIntent
PendingIntent: PendingIntent to send when the output switcher is tapped. May be null, in which case the output switcher will be disabled. This intent should open an Activity or it will be ignored.
Returns
MediaStyle. This value cannot be null.
Remarks
For media notifications associated with playback on a remote device, provide device information that will replace the default values for the output switcher chip on the media control, as well as an intent to use when the output switcher chip is tapped, on devices where this is supported. This method is intended for system applications to provide information and/or functionality that would otherwise be unavailable to the default output switcher because the media originated on a remote device. Requires Manifest.permission.MEDIA_CONTENT_CONTROL
Android reference for android.app.Notification.MediaStyle.setRemotePlaybackInfo.
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.