1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119<!DOCTYPE html>
120<html devsite>
121<head>
122
123
124    <meta name="top_category" value="develop" />
125
126    <meta name="subcategory" value="reference" />
127
128
129      <meta name="book_path" value="/reference/android/support/wearable/_book.yaml" />
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145<title>WatchFaceStyle.Builder</title>
146
147
148</head>
149
150<body class="gc-documentation develop reference api apilevel-">
151<div id="doc-api-level" class="" style="display:none"></div>
152
153
154
155
156<div id="naMessage"></div>
157
158<div id="api-info-block">
159<div class="api-level">
160
161
162
163
164</div>
165
166
167
168
169
170
171
172
173
174
175
176<div class="sum-details-links">
177
178Summary:
179
180
181
182
183
184
185
186
187
188  <a href="#pubctors">Ctors</a>
189
190
191
192
193  &#124; <a href="#pubmethods">Methods</a>
194
195
196
197
198  &#124; <a href="#inhmethods">Inherited Methods</a>
199
200&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
201
202</div><!-- end sum-details-links -->
203</div><!-- end api-info-block -->
204
205<div class="api apilevel-" id="jd-content">
206
207<!-- ======== START OF CLASS DATA ======== -->
208
209<h1 class="api-title">WatchFaceStyle.Builder</h1>
210<p>
211<code class="api-signature">
212  public
213  static
214
215
216  class
217  WatchFaceStyle.Builder
218</code>
219<br>
220
221
222<code class="api-signature">
223
224    extends Object
225
226
227
228</code>
229
230<code class="api-signature">
231
232
233
234</code>
235
236</p><table class="jd-inheritance-table">
237
238
239  <tr>
240
241    <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object
242    </td>
243  </tr>
244
245
246  <tr>
247
248      <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
249
250    <td colspan="1" class="jd-inheritance-class-cell">android.support.wearable.watchface.WatchFaceStyle.Builder
251    </td>
252  </tr>
253
254
255</table>
256
257
258
259
260<br><hr>
261
262
263  <p>Builder for WatchFaceStyle objects.
264</p>
265
266
267
268
269
270
271
272<h2 class="api-section">Summary</h2>
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296<!-- ======== CONSTRUCTOR SUMMARY ======== -->
297<table id="pubctors" class="responsive constructors">
298<tr><th colspan="2"><h3>Public constructors</h3></th></tr>
299
300
301
302
303  <tr class="api apilevel-" >
304
305
306    <td width="100%">
307      <code>
308      <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#WatchFaceStyle.Builder(android.app.Service)">WatchFaceStyle.Builder</a>(Service service)
309      </code>
310
311    </td>
312  </tr>
313
314
315
316</table>
317
318
319
320
321
322
323<!-- ========== METHOD SUMMARY =========== -->
324<table id="pubmethods" class="responsive methods">
325<tr><th colspan="2"><h3>Public methods</h3></th></tr>
326
327
328
329
330  <tr class="api apilevel-" >
331
332
333    <td><code>
334
335
336
337
338
339        <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html">WatchFaceStyle</a></code>
340    </td>
341
342    <td width="100%">
343      <code>
344      <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#build()">build</a>()
345      </code>
346
347        <p>Constructs read only WatchFaceStyle object.
348
349
350</p>
351
352    </td>
353  </tr>
354
355
356
357  <tr class="api apilevel-" >
358
359
360    <td><code>
361
362
363
364
365
366        <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code>
367    </td>
368
369    <td width="100%">
370      <code>
371      <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setAcceptsTapEvents(boolean)">setAcceptsTapEvents</a>(boolean acceptsTapEvents)
372      </code>
373
374        <p>Sets whether this watchface accepts tap events.
375
376
377</p>
378
379    </td>
380  </tr>
381
382
383
384  <tr class="api apilevel-" >
385
386
387    <td><code>
388
389
390
391
392
393        <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code>
394    </td>
395
396    <td width="100%">
397      <code>
398      <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setAmbientPeekMode(int)">setAmbientPeekMode</a>(int ambientPeekMode)
399      </code>
400
401        <p>Sets how the first, peeking card will be displayed while the watch is in ambient,
402 black & white mode.
403
404
405</p>
406
407    </td>
408  </tr>
409
410
411
412  <tr class="api apilevel-" >
413
414
415    <td><code>
416
417
418
419
420
421        <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code>
422    </td>
423
424    <td width="100%">
425      <code>
426      <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setBackgroundVisibility(int)">setBackgroundVisibility</a>(int backgroundVisibility)
427      </code>
428
429        <p>Set how to display background of the first, peeking card.
430
431
432</p>
433
434    </td>
435  </tr>
436
437
438
439  <tr class="api apilevel-" >
440
441
442    <td><code>
443
444
445
446
447
448        <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code>
449    </td>
450
451    <td width="100%">
452      <code>
453      <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setCardPeekMode(int)">setCardPeekMode</a>(int peekMode)
454      </code>
455
456        <p>Sets how far into the screen the first card will peek while the watch face is displayed.
457
458
459</p>
460
461    </td>
462  </tr>
463
464
465
466  <tr class="api apilevel-" >
467
468
469    <td><code>
470
471
472
473
474
475        <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code>
476    </td>
477
478    <td width="100%">
479      <code>
480      <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setHotwordIndicatorGravity(int)">setHotwordIndicatorGravity</a>(int hotwordIndicatorGravity)
481      </code>
482
483        <p>Sets position of hotword (OK Google) on the screen.
484
485
486</p>
487
488    </td>
489  </tr>
490
491
492
493  <tr class="api apilevel-" >
494
495
496    <td><code>
497
498
499
500
501
502        <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code>
503    </td>
504
505    <td width="100%">
506      <code>
507      <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setPeekOpacityMode(int)">setPeekOpacityMode</a>(int peekOpacityMode)
508      </code>
509
510        <p>Sets whether the first, peeking card should be opaque when the watch face is displayed.
511
512
513</p>
514
515    </td>
516  </tr>
517
518
519
520  <tr class="api apilevel-" >
521
522
523    <td><code>
524
525
526
527
528
529        <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code>
530    </td>
531
532    <td width="100%">
533      <code>
534      <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setShowSystemUiTime(boolean)">setShowSystemUiTime</a>(boolean showSystemUiTime)
535      </code>
536
537        <p>Sets if the system will draw the system-style time over the watch face.
538
539
540</p>
541
542    </td>
543  </tr>
544
545
546
547  <tr class="api apilevel-" >
548
549
550    <td><code>
551
552
553
554
555
556        <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code>
557    </td>
558
559    <td width="100%">
560      <code>
561      <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setShowUnreadCountIndicator(boolean)">setShowUnreadCountIndicator</a>(boolean show)
562      </code>
563
564        <p>Sets whether to add an indicator of how many unread cards there are in the stream.
565
566
567</p>
568
569    </td>
570  </tr>
571
572
573
574  <tr class="api apilevel-" >
575
576
577    <td><code>
578
579
580
581
582
583        <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code>
584    </td>
585
586    <td width="100%">
587      <code>
588      <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setStatusBarGravity(int)">setStatusBarGravity</a>(int statusBarGravity)
589      </code>
590
591        <p>Sets position of status icons (battery state, lack of connection) on the screen.
592
593
594</p>
595
596    </td>
597  </tr>
598
599
600
601  <tr class="api apilevel-" >
602
603
604    <td><code>
605
606
607
608
609
610        <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code>
611    </td>
612
613    <td width="100%">
614      <code>
615      <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setViewProtection(int)">setViewProtection</a>(int viewProtection)
616      </code>
617
618        <p><em>
619      This method is deprecated.
620    Use <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setViewProtectionMode(int)">setViewProtectionMode(int)</a></code> instead.
621</em>
622
623
624</p>
625
626    </td>
627  </tr>
628
629
630
631  <tr class="api apilevel-" >
632
633
634    <td><code>
635
636
637
638
639
640        <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code>
641    </td>
642
643    <td width="100%">
644      <code>
645      <a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setViewProtectionMode(int)">setViewProtectionMode</a>(int viewProtectionMode)
646      </code>
647
648        <p>Adds background color to UI elements of the home screen, so they are readable on
649 the watch face.
650
651
652</p>
653
654    </td>
655  </tr>
656
657
658
659</table>
660
661
662
663
664
665
666
667<!-- ========== METHOD SUMMARY =========== -->
668<table id="inhmethods" class="methods inhtable">
669<tr><th><h3>Inherited methods</h3></th></tr>
670
671
672<tr class="api apilevel-" >
673<td colspan="2">
674
675  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
676          ><img height="34" id="inherited-methods-java.lang.Object-trigger"
677          src="/assets/images/styles/disclosure_down.png"
678          class="jd-expando-trigger-img" /></a>From
679class
680<code>
681
682    java.lang.Object
683
684</code>
685<div id="inherited-methods-java.lang.Object">
686  <div id="inherited-methods-java.lang.Object-list"
687        class="jd-inheritedlinks">
688  </div>
689  <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
690    <table class="jd-sumtable-expando responsive">
691
692
693
694
695  <tr class="api apilevel-" >
696
697
698    <td><code>
699
700
701
702
703
704        Object</code>
705    </td>
706
707    <td width="100%">
708      <code>
709      clone()
710      </code>
711
712    </td>
713  </tr>
714
715
716
717  <tr class="api apilevel-" >
718
719
720    <td><code>
721
722
723
724
725
726        boolean</code>
727    </td>
728
729    <td width="100%">
730      <code>
731      equals(Object arg0)
732      </code>
733
734    </td>
735  </tr>
736
737
738
739  <tr class="api apilevel-" >
740
741
742    <td><code>
743
744
745
746
747
748        void</code>
749    </td>
750
751    <td width="100%">
752      <code>
753      finalize()
754      </code>
755
756    </td>
757  </tr>
758
759
760
761  <tr class="api apilevel-" >
762
763
764    <td><code>
765
766
767
768        final
769
770        Class&lt;?&gt;</code>
771    </td>
772
773    <td width="100%">
774      <code>
775      getClass()
776      </code>
777
778    </td>
779  </tr>
780
781
782
783  <tr class="api apilevel-" >
784
785
786    <td><code>
787
788
789
790
791
792        int</code>
793    </td>
794
795    <td width="100%">
796      <code>
797      hashCode()
798      </code>
799
800    </td>
801  </tr>
802
803
804
805  <tr class="api apilevel-" >
806
807
808    <td><code>
809
810
811
812        final
813
814        void</code>
815    </td>
816
817    <td width="100%">
818      <code>
819      notify()
820      </code>
821
822    </td>
823  </tr>
824
825
826
827  <tr class="api apilevel-" >
828
829
830    <td><code>
831
832
833
834        final
835
836        void</code>
837    </td>
838
839    <td width="100%">
840      <code>
841      notifyAll()
842      </code>
843
844    </td>
845  </tr>
846
847
848
849  <tr class="api apilevel-" >
850
851
852    <td><code>
853
854
855
856
857
858        String</code>
859    </td>
860
861    <td width="100%">
862      <code>
863      toString()
864      </code>
865
866    </td>
867  </tr>
868
869
870
871  <tr class="api apilevel-" >
872
873
874    <td><code>
875
876
877
878        final
879
880        void</code>
881    </td>
882
883    <td width="100%">
884      <code>
885      wait(long arg0, int arg1)
886      </code>
887
888    </td>
889  </tr>
890
891
892
893  <tr class="api apilevel-" >
894
895
896    <td><code>
897
898
899
900        final
901
902        void</code>
903    </td>
904
905    <td width="100%">
906      <code>
907      wait(long arg0)
908      </code>
909
910    </td>
911  </tr>
912
913
914
915  <tr class="api apilevel-" >
916
917
918    <td><code>
919
920
921
922        final
923
924        void</code>
925    </td>
926
927    <td width="100%">
928      <code>
929      wait()
930      </code>
931
932    </td>
933  </tr>
934
935
936
937    </table>
938  </div>
939</div>
940</td></tr>
941
942
943</table>
944
945
946
947<!-- XML Attributes -->
948
949
950<!-- Enum Values -->
951
952
953<!-- Constants -->
954
955
956<!-- Fields -->
957
958
959<!-- Public ctors -->
960
961
962<!-- ========= CONSTRUCTOR DETAIL ======== -->
963<h2 class="api-section">Public constructors</h2>
964
965
966
967<A NAME="WatchFaceStyle.Builder(android.app.Service)"></A>
968
969<div class="api apilevel-">
970    <h3 class="api-name">WatchFaceStyle.Builder</h3>
971    <div class="api-level">
972      <div></div>
973
974
975
976    </div>
977<pre class="api-signature no-pretty-print">
978WatchFaceStyle.Builder (Service service)</pre>
979
980
981
982
983  <p></p>
984    <table class="responsive">
985    <tr><th colspan=2>Parameters</th></tr>
986      <tr>
987        <td><code>service</code></td>
988        <td width="100%">
989          <code>Service</code>
990          <!-- no parameter comment --></td>
991      </tr>
992    </table>
993
994</div>
995
996
997
998
999
1000<!-- ========= CONSTRUCTOR DETAIL ======== -->
1001<!-- Protected ctors -->
1002
1003
1004
1005<!-- ========= METHOD DETAIL ======== -->
1006<!-- Public methdos -->
1007
1008<h2 class="api-section">Public methods</h2>
1009
1010
1011
1012<A NAME="build()"></A>
1013
1014<div class="api apilevel-">
1015    <h3 class="api-name">build</h3>
1016    <div class="api-level">
1017      <div></div>
1018
1019
1020
1021    </div>
1022<pre class="api-signature no-pretty-print">
1023<a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html">WatchFaceStyle</a> build ()</pre>
1024
1025
1026
1027
1028  <p>Constructs read only WatchFaceStyle object.
1029</p>
1030    <table class="responsive">
1031      <tr><th colspan=2>Returns</th></tr>
1032      <tr>
1033        <td><code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html">WatchFaceStyle</a></code></td>
1034        <td width="100%"><!-- no returns description in source --></td>
1035      </tr>
1036    </table>
1037
1038</div>
1039
1040
1041<A NAME="setAcceptsTapEvents(boolean)"></A>
1042
1043<div class="api apilevel-">
1044    <h3 class="api-name">setAcceptsTapEvents</h3>
1045    <div class="api-level">
1046      <div></div>
1047
1048
1049
1050    </div>
1051<pre class="api-signature no-pretty-print">
1052<a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a> setAcceptsTapEvents (boolean acceptsTapEvents)</pre>
1053
1054
1055
1056
1057  <p>Sets whether this watchface accepts tap events. The default is false.
1058 <p>
1059 Watchfaces that set this <code>true</code> are indicating they are prepared to receive
1060 <code><a href="/reference/android/support/wearable/watchface/WatchFaceService.html#TAP_TYPE_TOUCH">TAP_TYPE_TOUCH</a></code>,
1061 <code><a href="/reference/android/support/wearable/watchface/WatchFaceService.html#TAP_TYPE_TOUCH_CANCEL">TAP_TYPE_TOUCH_CANCEL</a></code>,
1062 and <code><a href="/reference/android/support/wearable/watchface/WatchFaceService.html#TAP_TYPE_TAP">TAP_TYPE_TAP</a></code></p>
1063    <table class="responsive">
1064    <tr><th colspan=2>Parameters</th></tr>
1065      <tr>
1066        <td><code>acceptsTapEvents</code></td>
1067        <td width="100%">
1068          <code>boolean</code>:
1069          whether to receive touch events.
1070</td>
1071      </tr>
1072    </table>
1073    <table class="responsive">
1074      <tr><th colspan=2>Returns</th></tr>
1075      <tr>
1076        <td><code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code></td>
1077        <td width="100%"><!-- no returns description in source --></td>
1078      </tr>
1079    </table>
1080
1081</div>
1082
1083
1084<A NAME="setAmbientPeekMode(int)"></A>
1085
1086<div class="api apilevel-">
1087    <h3 class="api-name">setAmbientPeekMode</h3>
1088    <div class="api-level">
1089      <div></div>
1090
1091
1092
1093    </div>
1094<pre class="api-signature no-pretty-print">
1095<a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a> setAmbientPeekMode (int ambientPeekMode)</pre>
1096
1097
1098
1099
1100  <p>Sets how the first, peeking card will be displayed while the watch is in ambient,
1101 black & white mode.</p>
1102    <table class="responsive">
1103    <tr><th colspan=2>Parameters</th></tr>
1104      <tr>
1105        <td><code>ambientPeekMode</code></td>
1106        <td width="100%">
1107          <code>int</code>:
1108          must be either <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html#AMBIENT_PEEK_MODE_VISIBLE">AMBIENT_PEEK_MODE_VISIBLE</a></code> or
1109                        <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html#AMBIENT_PEEK_MODE_HIDDEN">AMBIENT_PEEK_MODE_HIDDEN</a></code>
1110</td>
1111      </tr>
1112    </table>
1113    <table class="responsive">
1114      <tr><th colspan=2>Returns</th></tr>
1115      <tr>
1116        <td><code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code></td>
1117        <td width="100%"><!-- no returns description in source --></td>
1118      </tr>
1119    </table>
1120
1121</div>
1122
1123
1124<A NAME="setBackgroundVisibility(int)"></A>
1125
1126<div class="api apilevel-">
1127    <h3 class="api-name">setBackgroundVisibility</h3>
1128    <div class="api-level">
1129      <div></div>
1130
1131
1132
1133    </div>
1134<pre class="api-signature no-pretty-print">
1135<a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a> setBackgroundVisibility (int backgroundVisibility)</pre>
1136
1137
1138
1139
1140  <p>Set how to display background of the first, peeking card.</p>
1141    <table class="responsive">
1142    <tr><th colspan=2>Parameters</th></tr>
1143      <tr>
1144        <td><code>backgroundVisibility</code></td>
1145        <td width="100%">
1146          <code>int</code>:
1147          must be either <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html#BACKGROUND_VISIBILITY_INTERRUPTIVE">BACKGROUND_VISIBILITY_INTERRUPTIVE</a></code> or
1148                             <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html#BACKGROUND_VISIBILITY_PERSISTENT">BACKGROUND_VISIBILITY_PERSISTENT</a></code>
1149</td>
1150      </tr>
1151    </table>
1152    <table class="responsive">
1153      <tr><th colspan=2>Returns</th></tr>
1154      <tr>
1155        <td><code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code></td>
1156        <td width="100%"><!-- no returns description in source --></td>
1157      </tr>
1158    </table>
1159
1160</div>
1161
1162
1163<A NAME="setCardPeekMode(int)"></A>
1164
1165<div class="api apilevel-">
1166    <h3 class="api-name">setCardPeekMode</h3>
1167    <div class="api-level">
1168      <div></div>
1169
1170
1171
1172    </div>
1173<pre class="api-signature no-pretty-print">
1174<a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a> setCardPeekMode (int peekMode)</pre>
1175
1176
1177
1178
1179  <p>Sets how far into the screen the first card will peek while the watch face is displayed.</p>
1180    <table class="responsive">
1181    <tr><th colspan=2>Parameters</th></tr>
1182      <tr>
1183        <td><code>peekMode</code></td>
1184        <td width="100%">
1185          <code>int</code>:
1186          must be either PEEK_MODE_VARIABLE or PEEK_MODE_SHORT
1187</td>
1188      </tr>
1189    </table>
1190    <table class="responsive">
1191      <tr><th colspan=2>Returns</th></tr>
1192      <tr>
1193        <td><code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code></td>
1194        <td width="100%"><!-- no returns description in source --></td>
1195      </tr>
1196    </table>
1197
1198</div>
1199
1200
1201<A NAME="setHotwordIndicatorGravity(int)"></A>
1202
1203<div class="api apilevel-">
1204    <h3 class="api-name">setHotwordIndicatorGravity</h3>
1205    <div class="api-level">
1206      <div></div>
1207
1208
1209
1210    </div>
1211<pre class="api-signature no-pretty-print">
1212<a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a> setHotwordIndicatorGravity (int hotwordIndicatorGravity)</pre>
1213
1214
1215
1216
1217  <p>Sets position of hotword (OK Google) on the screen.</p>
1218    <table class="responsive">
1219    <tr><th colspan=2>Parameters</th></tr>
1220      <tr>
1221        <td><code>hotwordIndicatorGravity</code></td>
1222        <td width="100%">
1223          <code>int</code>:
1224          This must be any combination of horizontal Gravity
1225                                constant (<code><a href="/reference/android/view/Gravity.html#LEFT">LEFT</a></code>,
1226                                <code><a href="/reference/android/view/Gravity.html#CENTER_HORIZONTAL">CENTER_HORIZONTAL</a></code>, <code><a href="/reference/android/view/Gravity.html#RIGHT">RIGHT</a></code>)
1227                                and vertical Gravity constants (<code><a href="/reference/android/view/Gravity.html#TOP">TOP</a></code>,
1228                                <code><a href="/reference/android/view/Gravity.html#CENTER_VERTICAL">CENTER_VERTICAL</a></code>, <code><a href="/reference/android/view/Gravity.html#BOTTOM">BOTTOM</a></code>),
1229                                e.g. <code>Gravity.LEFT | Gravity.BOTTOM</code>. On circular
1230                                screens, only the vertical gravity is respected.
1231</td>
1232      </tr>
1233    </table>
1234    <table class="responsive">
1235      <tr><th colspan=2>Returns</th></tr>
1236      <tr>
1237        <td><code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code></td>
1238        <td width="100%"><!-- no returns description in source --></td>
1239      </tr>
1240    </table>
1241
1242</div>
1243
1244
1245<A NAME="setPeekOpacityMode(int)"></A>
1246
1247<div class="api apilevel-">
1248    <h3 class="api-name">setPeekOpacityMode</h3>
1249    <div class="api-level">
1250      <div></div>
1251
1252
1253
1254    </div>
1255<pre class="api-signature no-pretty-print">
1256<a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a> setPeekOpacityMode (int peekOpacityMode)</pre>
1257
1258
1259
1260
1261  <p>Sets whether the first, peeking card should be opaque when the watch face is displayed.</p>
1262    <table class="responsive">
1263    <tr><th colspan=2>Parameters</th></tr>
1264      <tr>
1265        <td><code>peekOpacityMode</code></td>
1266        <td width="100%">
1267          <code>int</code>:
1268          must be either <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html#PEEK_OPACITY_MODE_OPAQUE">PEEK_OPACITY_MODE_OPAQUE</a></code> or
1269                        <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html#PEEK_OPACITY_MODE_TRANSLUCENT">PEEK_OPACITY_MODE_TRANSLUCENT</a></code>
1270</td>
1271      </tr>
1272    </table>
1273    <table class="responsive">
1274      <tr><th colspan=2>Returns</th></tr>
1275      <tr>
1276        <td><code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code></td>
1277        <td width="100%"><!-- no returns description in source --></td>
1278      </tr>
1279    </table>
1280
1281</div>
1282
1283
1284<A NAME="setShowSystemUiTime(boolean)"></A>
1285
1286<div class="api apilevel-">
1287    <h3 class="api-name">setShowSystemUiTime</h3>
1288    <div class="api-level">
1289      <div></div>
1290
1291
1292
1293    </div>
1294<pre class="api-signature no-pretty-print">
1295<a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a> setShowSystemUiTime (boolean showSystemUiTime)</pre>
1296
1297
1298
1299
1300  <p>Sets if the system will draw the system-style time over the watch face.</p>
1301    <table class="responsive">
1302    <tr><th colspan=2>Parameters</th></tr>
1303      <tr>
1304        <td><code>showSystemUiTime</code></td>
1305        <td width="100%">
1306          <code>boolean</code>:
1307          Set this to false if you already draw or clearly represent the
1308                         time on your watch face.
1309</td>
1310      </tr>
1311    </table>
1312    <table class="responsive">
1313      <tr><th colspan=2>Returns</th></tr>
1314      <tr>
1315        <td><code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code></td>
1316        <td width="100%"><!-- no returns description in source --></td>
1317      </tr>
1318    </table>
1319
1320</div>
1321
1322
1323<A NAME="setShowUnreadCountIndicator(boolean)"></A>
1324
1325<div class="api apilevel-">
1326    <h3 class="api-name">setShowUnreadCountIndicator</h3>
1327    <div class="api-level">
1328      <div></div>
1329
1330
1331
1332    </div>
1333<pre class="api-signature no-pretty-print">
1334<a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a> setShowUnreadCountIndicator (boolean show)</pre>
1335
1336
1337
1338
1339  <p>Sets whether to add an indicator of how many unread cards there are in the stream.
1340 The indicator will be displayed next to status icons (battery state, lack of connection).</p>
1341    <table class="responsive">
1342    <tr><th colspan=2>Parameters</th></tr>
1343      <tr>
1344        <td><code>show</code></td>
1345        <td width="100%">
1346          <code>boolean</code>:
1347          if true an indicator will be shown
1348</td>
1349      </tr>
1350    </table>
1351    <table class="responsive">
1352      <tr><th colspan=2>Returns</th></tr>
1353      <tr>
1354        <td><code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code></td>
1355        <td width="100%"><!-- no returns description in source --></td>
1356      </tr>
1357    </table>
1358
1359</div>
1360
1361
1362<A NAME="setStatusBarGravity(int)"></A>
1363
1364<div class="api apilevel-">
1365    <h3 class="api-name">setStatusBarGravity</h3>
1366    <div class="api-level">
1367      <div></div>
1368
1369
1370
1371    </div>
1372<pre class="api-signature no-pretty-print">
1373<a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a> setStatusBarGravity (int statusBarGravity)</pre>
1374
1375
1376
1377
1378  <p>Sets position of status icons (battery state, lack of connection) on the screen.</p>
1379    <table class="responsive">
1380    <tr><th colspan=2>Parameters</th></tr>
1381      <tr>
1382        <td><code>statusBarGravity</code></td>
1383        <td width="100%">
1384          <code>int</code>:
1385          This must be any combination of horizontal Gravity constant
1386                         (<code><a href="/reference/android/view/Gravity.html#LEFT">LEFT</a></code>, <code><a href="/reference/android/view/Gravity.html#CENTER_HORIZONTAL">CENTER_HORIZONTAL</a></code>,
1387                         <code><a href="/reference/android/view/Gravity.html#RIGHT">RIGHT</a></code>) and vertical Gravity constants
1388                         (<code><a href="/reference/android/view/Gravity.html#TOP">TOP</a></code>, <code><a href="/reference/android/view/Gravity.html#CENTER_VERTICAL">CENTER_VERTICAL</a></code>,
1389                         <code><a href="/reference/android/view/Gravity.html#BOTTOM">BOTTOM</a></code>), e.g. <code>Gravity.LEFT |
1390                         Gravity.BOTTOM</code>. On circular screens, only the vertical gravity
1391                         is respected.
1392</td>
1393      </tr>
1394    </table>
1395    <table class="responsive">
1396      <tr><th colspan=2>Returns</th></tr>
1397      <tr>
1398        <td><code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code></td>
1399        <td width="100%"><!-- no returns description in source --></td>
1400      </tr>
1401    </table>
1402
1403</div>
1404
1405
1406<A NAME="setViewProtection(int)"></A>
1407
1408<div class="api apilevel-">
1409    <h3 class="api-name">setViewProtection</h3>
1410    <div class="api-level">
1411      <div></div>
1412
1413
1414
1415    </div>
1416<pre class="api-signature no-pretty-print">
1417<a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a> setViewProtection (int viewProtection)</pre>
1418
1419
1420
1421    <p>
1422  <p class="caution"><strong>
1423      This method is deprecated.</strong><br/>
1424    Use <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html#setViewProtectionMode(int)">setViewProtectionMode(int)</a></code> instead.
1425
1426  </p>
1427  <p>Adds background color to UI elements of the home screen, so they are readable on
1428 the watch face. This should be used if the watch face color is close to being white.</p>
1429    <table class="responsive">
1430    <tr><th colspan=2>Parameters</th></tr>
1431      <tr>
1432        <td><code>viewProtection</code></td>
1433        <td width="100%">
1434          <code>int</code>:
1435          must be any combination of <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html#PROTECT_STATUS_BAR">PROTECT_STATUS_BAR</a></code>,
1436                       <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html#PROTECT_HOTWORD_INDICATOR">PROTECT_HOTWORD_INDICATOR</a></code> and
1437                       <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html#PROTECT_WHOLE_SCREEN">PROTECT_WHOLE_SCREEN</a></code>, e.g. <code>PROTECT_STATUS_BAR |
1438                       PROTECT_HOTWORD_INDICATOR</code></td>
1439      </tr>
1440    </table>
1441    <table class="responsive">
1442      <tr><th colspan=2>Returns</th></tr>
1443      <tr>
1444        <td><code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code></td>
1445        <td width="100%"><!-- no returns description in source --></td>
1446      </tr>
1447    </table>
1448
1449</div>
1450
1451
1452<A NAME="setViewProtectionMode(int)"></A>
1453
1454<div class="api apilevel-">
1455    <h3 class="api-name">setViewProtectionMode</h3>
1456    <div class="api-level">
1457      <div></div>
1458
1459
1460
1461    </div>
1462<pre class="api-signature no-pretty-print">
1463<a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a> setViewProtectionMode (int viewProtectionMode)</pre>
1464
1465
1466
1467
1468  <p>Adds background color to UI elements of the home screen, so they are readable on
1469 the watch face. This should be used if the watch face color is close to being white.</p>
1470    <table class="responsive">
1471    <tr><th colspan=2>Parameters</th></tr>
1472      <tr>
1473        <td><code>viewProtectionMode</code></td>
1474        <td width="100%">
1475          <code>int</code>:
1476          must be any combination of <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html#PROTECT_STATUS_BAR">PROTECT_STATUS_BAR</a></code>,
1477                           <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html#PROTECT_HOTWORD_INDICATOR">PROTECT_HOTWORD_INDICATOR</a></code> and
1478                           <code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html#PROTECT_WHOLE_SCREEN">PROTECT_WHOLE_SCREEN</a></code>, e.g. <code>PROTECT_STATUS_BAR |
1479                           PROTECT_HOTWORD_INDICATOR</code>
1480</td>
1481      </tr>
1482    </table>
1483    <table class="responsive">
1484      <tr><th colspan=2>Returns</th></tr>
1485      <tr>
1486        <td><code><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></code></td>
1487        <td width="100%"><!-- no returns description in source --></td>
1488      </tr>
1489    </table>
1490
1491</div>
1492
1493
1494
1495
1496
1497<!-- ========= METHOD DETAIL ======== -->
1498
1499
1500
1501<!-- ========= END OF CLASS DATA ========= -->
1502
1503</div><!-- end jd-content -->
1504
1505
1506
1507<div class="data-reference-resources-wrapper">
1508
1509  <ul data-reference-resources>
1510
1511    <li><h2>Annotations</h2>
1512      <ul>
1513          <li class="api apilevel-"><a href="/reference/android/support/wearable/watchface/WatchFaceService.TapType.html">WatchFaceService.TapType</a></li>
1514      </ul>
1515    </li>
1516
1517
1518    <li><h2>Classes</h2>
1519      <ul>
1520          <li class="api apilevel-"><a href="/reference/android/support/wearable/watchface/CanvasWatchFaceService.html">CanvasWatchFaceService</a></li>
1521          <li class="api apilevel-"><a href="/reference/android/support/wearable/watchface/CanvasWatchFaceService.Engine.html">CanvasWatchFaceService.Engine</a></li>
1522          <li class="api apilevel-"><a href="/reference/android/support/wearable/watchface/Gles2WatchFaceService.html">Gles2WatchFaceService</a></li>
1523          <li class="api apilevel-"><a href="/reference/android/support/wearable/watchface/Gles2WatchFaceService.Engine.html">Gles2WatchFaceService.Engine</a></li>
1524          <li class="api apilevel-"><a href="/reference/android/support/wearable/watchface/WatchFaceService.html">WatchFaceService</a></li>
1525          <li class="api apilevel-"><a href="/reference/android/support/wearable/watchface/WatchFaceService.Engine.html">WatchFaceService.Engine</a></li>
1526          <li class="api apilevel-"><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.html">WatchFaceStyle</a></li>
1527          <li class="selected api apilevel-"><a href="/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html">WatchFaceStyle.Builder</a></li>
1528      </ul>
1529    </li>
1530
1531
1532
1533  </ul>
1534
1535</div>
1536
1537
1538
1539</body>
1540</html>
1541