Udostępnij za pośrednictwem


MediaRouter.RouteInfo.PresentationDisplay Property

Definition

Gets the Display that should be used by the application to show a android.app.Presentation on an external display when this route is selected.

public virtual Android.Views.Display PresentationDisplay { [Android.Runtime.Register("getPresentationDisplay", "()Landroid/view/Display;", "GetGetPresentationDisplayHandler")] get; }
[<get: Android.Runtime.Register("getPresentationDisplay", "()Landroid/view/Display;", "GetGetPresentationDisplayHandler")>]
member this.PresentationDisplay : Android.Views.Display

Property Value

The preferred presentation display to use when this route is selected or null if none.

Attributes

Remarks

Gets the Display that should be used by the application to show a android.app.Presentation on an external display when this route is selected. Depending on the route, this may only be valid if the route is currently selected.

The preferred presentation display may change independently of the route being selected or unselected. For example, the presentation display of the default system route may change when an external HDMI display is connected or disconnected even though the route itself has not changed.

This method may return null if there is no external display associated with the route or if the display is not ready to show UI yet.

The application should listen for changes to the presentation display using the Callback#onRoutePresentationDisplayChanged callback and show or dismiss its android.app.Presentation accordingly when the display becomes available or is removed.

This method only makes sense for #ROUTE_TYPE_LIVE_VIDEO live video routes.

Java documentation for android.media.MediaRouter.RouteInfo.getPresentationDisplay().

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.

Applies to

See also