OverlayStyle
public final class OverlayStyle
This class reflects a snapshot of androidx.wear.watchface.WatchFace.OverlayStyle.
Note while this plumbing got built, it was never used by the system ui on any platform and it will be removed.
Summary
Public constructors |
|---|
|
This method is deprecated. OverlayStyle will be removed in a future release. |
This method is deprecated. OverlayStyle will be removed in a future release. |
Public methods |
|
|---|---|
boolean |
This method is deprecated. OverlayStyle will be removed in a future release. |
final Color |
This method is deprecated. OverlayStyle will be removed in a future release. |
final Color |
This method is deprecated. OverlayStyle will be removed in a future release. |
int |
This method is deprecated. OverlayStyle will be removed in a future release. |
@NonNull String |
This method is deprecated. OverlayStyle will be removed in a future release. |
Public constructors
public OverlayStyle()Default constructor when when there's no data available. E.g. when dealing with an old watch face.
Public methods
public final ColorgetBackgroundColor()
The background color of the status indicator tray. This can be any color, including Color.TRANSPARENT. If this is null then the system default will be used.
public final ColorgetForegroundColor()
The background color of items rendered in the status indicator tray. If not null then this must be either Color.BLACK or Color.WHITE. If this is null then the system default will be used.