MediaSessionFlags Enum
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.
Enumerates values returned by several types and taken as a parameter of the F:Android.Media.Session.MediaSession.SetFlags member.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum MediaSessionFlags
[<System.Flags>]
type MediaSessionFlags =
- Inheritance
-
MediaSessionFlags
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| None | 0 | |
| HandlesMediaButtons | 1 | Indicates that the session can handle media button events. This flag is a no-op on Android 8.0 (API level 26) and later, where all media sessions are expected to handle media button events. |
| HandlesTransportControls | 2 | Indicates that the session handles transport control commands through its callback. This flag is a no-op on Android 8.0 (API level 26) and later, where all media sessions are expected to handle transport controls. |
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.