Język

RouteListingPreferenceFlags Enum

Definition

Combines route-list indicators for an ongoing session, current-user management and a suggested route.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum RouteListingPreferenceFlags
[<System.Flags>]
type RouteListingPreferenceFlags = 
Inheritance
RouteListingPreferenceFlags
Attributes

Fields

Name Value Description
None 0

Specifies a zero mask with none of the route-list indicator bits set.

OngoingSession 1

The corresponding route is already hosting a session with the app that owns this listing preference.

Android reference for android.media.RouteListingPreference.Item.FLAG_ONGOING_SESSION.

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.

OngoingSessionManaged 2

Signals that the ongoing session on the corresponding route is managed by the current user of the app. The system can use this flag to provide visual indication that the route is not only hosting a session, but also that the user has ownership over said session. This flag is ignored if FLAG_ONGOING_SESSION is not set, or if the corresponding route is not currently selected. This flag does not affect volume adjustment (see VolumeProvider, and MediaRoute2Info.getVolumeHandling() ), or any aspect other than the visual representation of the corresponding item.

Android reference for android.media.RouteListingPreference.Item.FLAG_ONGOING_SESSION_MANAGED.

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.

Suggested 4

The corresponding route is specially likely to be selected by the user. A UI reflecting this preference may reserve a specific space for suggested routes, making it more accessible to the user. If the number of suggested routes exceeds the number supported by the UI, the routes listed first in RouteListingPreference.getItems() will take priority.

Android reference for android.media.RouteListingPreference.Item.FLAG_SUGGESTED.

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.

Remarks

The managed-session indicator affects only the item's visual representation, not volume control. It is ignored unless the ongoing-session flag is set and the route is selected.

Applies to