RemoteWatchFaceViewHost
public interface RemoteWatchFaceViewHost extends AutoCloseable
Intended for use by watch face editors, a RemoteWatchFaceViewHost allows the watch face to send a SurfaceControlViewHost.SurfacePackage to the client, which the client can attach to a SurfaceView with SurfaceView.setChildSurfacePackage. The client can request an updated screen shot by calling renderWatchFace.
use Watch Face Format instead
Summary
Public methods |
|
|---|---|
abstract @NonNull SurfaceControlViewHost.SurfacePackage |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
abstract void |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Inherited methods |
||
|---|---|---|
|
Public methods
getSurfacePackage
abstract @NonNull SurfaceControlViewHost.SurfacePackagegetSurfacePackage()
The SurfaceControlViewHost.SurfacePackage the client should attach to a SurfaceView via SurfaceView.setChildSurfacePackage. The watch face will render into this view when renderWatchFace is called.
renderWatchFace
abstract voidrenderWatchFace(
@NonNull RenderParameters renderParameters,
@NonNull Instant instant,
UserStyle userStyle,
Map<@NonNull Integer, @NonNull ComplicationData> idAndComplicationData
)
Renders the watchface into the view associated with surfacePackage.
| Parameters | |
|---|---|
@NonNull RenderParameters renderParameters |
The |
@NonNull Instant instant |
The |
UserStyle userStyle |
Optional |
Map<@NonNull Integer, @NonNull ComplicationData> idAndComplicationData |
Map of complication ids to |