ComplicationState
class ComplicationState
kotlin.Any | |
↳ | androidx.wear.watchface.client.ComplicationState |
State of the Complication.
Summary
Public constructors | |
---|---|
<init>(bounds: Rect, boundsType: Int, supportedTypes: List<ComplicationType>, defaultProviderPolicy: DefaultComplicationProviderPolicy, defaultProviderType: ComplicationType, isEnabled: Boolean, currentType: ComplicationType) State of the Complication. |
Properties | |
---|---|
Rect |
Screen space bounds of the Complication in pixels. |
Int |
The type of the complication's bounds. |
ComplicationType |
The ComplicationType of the complication's current ComplicationData. |
DefaultComplicationProviderPolicy |
The DefaultComplicationProviderPolicy for this complication. |
ComplicationType |
The default ComplicationType for this complication. |
Boolean |
Whether or not the complication is drawn. |
List<ComplicationType> |
The ComplicationTypes supported by this complication. |
Public constructors
<init>
ComplicationState(
bounds: Rect,
boundsType: Int,
supportedTypes: List<ComplicationType>,
defaultProviderPolicy: DefaultComplicationProviderPolicy,
defaultProviderType: ComplicationType,
isEnabled: Boolean,
currentType: ComplicationType)
State of the Complication.
Properties
currentType
val currentType: ComplicationType
The ComplicationType of the complication's current ComplicationData.
defaultProviderPolicy
val defaultProviderPolicy: DefaultComplicationProviderPolicy
The DefaultComplicationProviderPolicy for this complication.
defaultProviderType
val defaultProviderType: ComplicationType
The default ComplicationType for this complication.
supportedTypes
val supportedTypes: List<ComplicationType>
The ComplicationTypes supported by this complication.