JuliaKo
JuliaKo

Reputation: 731

Deprecated methods in watch face module

I'm developing a watch face on Android.

In onCreate method when I set watch face style, I see that a bunch of methods are deprecated, but on Android official website they are not. What should I do to get rid of these deprecated methods, or leave them as they are?



    @Override
        public void onCreate(SurfaceHolder holder) {
            super.onCreate(holder);

            setWatchFaceStyle(new WatchFaceStyle.Builder(DigitalWatchFace.this)
                    .setCardPeekMode(WatchFaceStyle.PEEK_MODE_VARIABLE)
                    .setBackgroundVisibility(WatchFaceStyle.BACKGROUND_VISIBILITY_INTERRUPTIVE)
                    .setShowSystemUiTime(false)
                    .setAcceptsTapEvents(true)
                    .build());
            // ...
        }

Upvotes: 4

Views: 364

Answers (1)

cark
cark

Reputation: 254

Those methods are deprecated because of this changes in android wear 2. The notifications will be shown for few seconds and then the watch face will be visible again. For this reason those methods don't have sense anymore.

Upvotes: 1

Related Questions