MediaSession.SetSessionActivity(PendingIntent) 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.
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
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)
.
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.