Share via


MediaSession.SetSessionActivity(PendingIntent) Method

Definition

Set an intent for launching UI for this Session.

[Android.Runtime.Register("setSessionActivity", "(Landroid/app/PendingIntent;)V", "")]
public void SetSessionActivity (Android.App.PendingIntent? pi);
[<Android.Runtime.Register("setSessionActivity", "(Landroid/app/PendingIntent;)V", "")>]
member this.SetSessionActivity : Android.App.PendingIntent -> unit

Parameters

pi
PendingIntent

The intent to launch to show UI for this Session.

Attributes

Remarks

Set an intent for launching UI for this Session. This can be used as a quick link to an ongoing media screen. The intent should be for an activity that may be started using Activity#startActivity(Intent).

Java documentation for android.media.session.MediaSession.setSessionActivity(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.

Applies to