diff options
| author | 2020-06-18 14:33:24 +0000 | |
|---|---|---|
| committer | 2020-06-18 14:33:24 +0000 | |
| commit | e1ed6dcf57fcbcc3ec3113bea9146e748d88f73e (patch) | |
| tree | 99ef225a768e0e5401e5f53694022c537f50c3c5 | |
| parent | 05df6a589ea6968f93bc1b2dd172155eb7db5784 (diff) | |
| parent | 68943be01deccb0f932ab7a51aff5154d363c701 (diff) | |
Merge "Controls API - Update template docs" into rvc-dev
| -rw-r--r-- | core/java/android/service/controls/Control.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/service/controls/Control.java b/core/java/android/service/controls/Control.java index 8383072a48e3..2868f1bf3547 100644 --- a/core/java/android/service/controls/Control.java +++ b/core/java/android/service/controls/Control.java @@ -789,6 +789,13 @@ public final class Control implements Parcelable { } /** + * Set the {@link ControlTemplate} to define the primary user interaction + * + * Devices may support a variety of user interactions, and all interactions cannot be + * represented with a single {@link ControlTemplate}. Therefore, the selected template + * should be most closely aligned with what the expected primary device action will be. + * Any secondary interactions can be done via the {@link #setAppIntent(PendingIntent)}. + * * @param controlTemplate instance of {@link ControlTemplate}, that defines how the * {@link Control} will behave and what interactions are * available to the user |