Example usage for android.view Display INVALID_DISPLAY

List of usage examples for android.view Display INVALID_DISPLAY

Introduction

In this page you can find the example usage for android.view Display INVALID_DISPLAY.

Prototype

int INVALID_DISPLAY

To view the source code for android.view Display INVALID_DISPLAY.

Click Source Link

Document

Invalid display id.

Usage

From source file:android.car.cluster.sample.NavigationFragment.java

private int getVirtualDisplayId() {
    return (mVirtualDisplay != null && mVirtualDisplay.getDisplay() != null)
            ? mVirtualDisplay.getDisplay().getDisplayId()
            : Display.INVALID_DISPLAY;
}