ProjectedDeviceController
@ExperimentalProjectedApi
public final class ProjectedDeviceController
Controller for the Projected device.
Use create to create an instance of this class.
Summary
Nested types |
|---|
public final class ProjectedDeviceController.CapabilityRepresents an intrinsic piece of functionality of a Projected device, i.e., what it is capable of. |
Public methods |
|
|---|---|
static final @NonNull ProjectedDeviceController |
@RequiresApi(value = 34)Connects to the service providing features for Projected devices and returns the |
final @NonNull Set<@NonNull ProjectedDeviceController.Capability> |
The capabilities of the Projected device. |
Public methods
create
@RequiresApi(value = 34)
public static final @NonNull ProjectedDeviceController create(@NonNull Context context)
Connects to the service providing features for Projected devices and returns the ProjectedDisplayController when the connection is established.
| Throws | |
|---|---|
kotlin.IllegalStateException |
if the projected service is not found or binding is not permitted |
getCapabilities
public final @NonNull Set<@NonNull ProjectedDeviceController.Capability> getCapabilities()
The capabilities of the Projected device.
These capabilities represent intrinsic functionality of the device that will not change over the lifetime of the device, for example, whether the device is capable of showing a visual user interface at all, regardless of whether the screen is currently on or off.