ProjectedDeviceController


@ExperimentalProjectedApi
class ProjectedDeviceController


Controller for the Projected device.

Use create to create an instance of this class.

Summary

Nested types

Represents an intrinsic piece of functionality of a Projected device, i.e., what it is capable of.

Public companion functions

suspend ProjectedDeviceController
@RequiresApi(value = 34)
create(context: Context)

Connects to the service providing features for Projected devices and returns the ProjectedDisplayController when the connection is established.

Public properties

Set<ProjectedDeviceController.Capability>

The capabilities of the Projected device.

Public companion functions

create

@RequiresApi(value = 34)
suspend fun create(context: Context): ProjectedDeviceController

Connects to the service providing features for Projected devices and returns the ProjectedDisplayController when the connection is established.

Parameters
context: Context

The context to use for binding to the service.

Throws
kotlin.IllegalStateException

if the projected service is not found or binding is not permitted

Public properties

capabilities

Added in 1.0.0-alpha03
val capabilitiesSet<ProjectedDeviceController.Capability>

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.