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. -or- Set if this session is currently active and ready to receive commands.
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
Property getter documentation:
Get the current active state of this session.
Java documentation for android.media.session.MediaSession.isActive()
.
Property setter documentation:
Set if this session is currently active and ready to receive commands. If set to false your session's controller may not be discoverable. You must set the session to active before it can start receiving media button events or transport commands.
Java documentation for android.media.session.MediaSession.setActive(boolean)
.
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.