MediaSession.Active Property
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.
Get the current active state of this session.
public bool Active { [Android.Runtime.Register("isActive", "()Z", "")] get; [Android.Runtime.Register("setActive", "(Z)V", "")] set; }
[<get: Android.Runtime.Register("isActive", "()Z", "")>]
[<set: Android.Runtime.Register("setActive", "(Z)V", "")>]
member this.Active : bool with get, set
Property Value
True if the session is active, false otherwise.
- Attributes
Remarks
Get the current active state of this session.
If false then your session's controller will not be discoverable via MediaSessionManager#getActiveSessions(ComponentName) by other apps, including system apps.
Java documentation for android.media.session.MediaSession.isActive().
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.