ComplicationRequest

public final class ComplicationRequest


Data associated with complication request in ComplicationDataSourceService.onComplicationRequest.

Summary

Public fields

final int

The system's id for the requested complication which is a unique value for the tuple Watch face ComponentName, complication slot ID.

final @NonNull ComplicationType

The type of complication data requested.

Public constructors

ComplicationRequest(
    int complicationInstanceId,
    ComplicationType complicationType
)

Public fields

complicationInstanceId

public final int complicationInstanceId

The system's id for the requested complication which is a unique value for the tuple Watch face ComponentName, complication slot ID.

complicationType

public final @NonNull ComplicationType complicationType

The type of complication data requested.

Public constructors

ComplicationRequest

public final ComplicationRequest(
    int complicationInstanceId,
    ComplicationType complicationType
)
Parameters
int complicationInstanceId

The system's id for the requested complication which is a unique value for the tuple Watch face ComponentName, complication slot ID.

ComplicationType complicationType

The type of complication data requested.