Loading docs/html/training/wearables/watch-faces/service.jd +5 −0 Original line number Diff line number Diff line Loading @@ -164,21 +164,25 @@ public class AnalogWatchFaceService extends CanvasWatchFaceService { @Override public void onCreate(SurfaceHolder holder) { super.onCreate(holder); /* initialize your watch face */ } @Override public void onPropertiesChanged(Bundle properties) { super.onPropertiesChanged(properties); /* get device features (burn-in, low-bit ambient) */ } @Override public void onTimeTick() { super.onTimeTick(); /* the time changed */ } @Override public void onAmbientModeChanged(boolean inAmbientMode) { super.onAmbientModeChanged(inAmbientMode); /* the wearable switched between modes */ } Loading @@ -189,6 +193,7 @@ public class AnalogWatchFaceService extends CanvasWatchFaceService { @Override public void onVisibilityChanged(boolean visible) { super.onVisibilityChanged(visible); /* the watch face became visible or invisible */ } } Loading Loading
docs/html/training/wearables/watch-faces/service.jd +5 −0 Original line number Diff line number Diff line Loading @@ -164,21 +164,25 @@ public class AnalogWatchFaceService extends CanvasWatchFaceService { @Override public void onCreate(SurfaceHolder holder) { super.onCreate(holder); /* initialize your watch face */ } @Override public void onPropertiesChanged(Bundle properties) { super.onPropertiesChanged(properties); /* get device features (burn-in, low-bit ambient) */ } @Override public void onTimeTick() { super.onTimeTick(); /* the time changed */ } @Override public void onAmbientModeChanged(boolean inAmbientMode) { super.onAmbientModeChanged(inAmbientMode); /* the wearable switched between modes */ } Loading @@ -189,6 +193,7 @@ public class AnalogWatchFaceService extends CanvasWatchFaceService { @Override public void onVisibilityChanged(boolean visible) { super.onVisibilityChanged(visible); /* the watch face became visible or invisible */ } } Loading