ProjectedDeviceController


@ExperimentalProjectedApi
public final 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 methods

static final @NonNull ProjectedDeviceController
@RequiresApi(value = 34)
create(@NonNull Context context)

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

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.

Parameters
@NonNull 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

getCapabilities

Added in 1.0.0-alpha03
public final @NonNull Set<@NonNull ProjectedDeviceController.CapabilitygetCapabilities()

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.