GestureProducerParams

@RequiresApi(value = 36)
public final class GestureProducerParams


Configuration parameters required to add a new GestureProducer.

This class encapsulates the security and identification metadata needed to verify the producer's authority to inject events.

Summary

Nested types

Builder for GestureProducerParams.

Public fields

final DeviceId

Public methods

boolean
@NonNull DeviceId

Returns the DeviceId associated with this producer.

int
static @NonNull GestureProducerParams.Builder
newBuilder(@NonNull DeviceId companionDeviceId)

Returns a new Builder for GestureProducerParams.

@NonNull String

Public fields

companionDeviceId

public final DeviceId companionDeviceId

Public methods

equals

public boolean equals(@Nullable Object o)

getCompanionDeviceId

public @NonNull DeviceId getCompanionDeviceId()

Returns the DeviceId associated with this producer.

Google Play services uses this ID to verify that you have a valid, user-approved association with the physical device.

To acquire this ID, you must retrieve your active associations directly from the OS, such as by calling getMyAssociations and extracting the corresponding DeviceId. Don't attempt to manually construct or mock the DeviceId object, as the system strictly verifies its internal security key.

Returns
@NonNull DeviceId

The Companion Device Manager (CDM) device ID.

hashCode

public int hashCode()

newBuilder

public static @NonNull GestureProducerParams.Builder newBuilder(@NonNull DeviceId companionDeviceId)

Returns a new Builder for GestureProducerParams.

Parameters
@NonNull DeviceId companionDeviceId

The DeviceId associated with this producer.

toString

public @NonNull String toString()