public static final class TvInputInfo.TvInputSettings extends Object
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
getCustomLabels(Context context,
int userId)
Returns a map of TV input ID/custom label pairs set by the user in the settings.
|
static Set<String> |
getHiddenTvInputIds(Context context,
int userId)
Returns a set of TV input IDs which are marked as hidden by user in the settings.
|
static void |
putCustomLabels(Context context,
Map<String,String> customLabels,
int userId)
Stores a map of TV input ID/custom label set by user.
|
static void |
putHiddenTvInputs(Context context,
Set<String> hiddenInputIds,
int userId)
Stores a set of TV input IDs which are marked as hidden by user.
|
public static Set<String> getHiddenTvInputIds(Context context, int userId)
context
- The application contextuserId
- The user ID for the stored hidden input setpublic static Map<String,String> getCustomLabels(Context context, int userId)
context
- The application contextuserId
- The user ID for the stored hidden input mappublic static void putHiddenTvInputs(Context context, Set<String> hiddenInputIds, int userId)
context
- The application contexthiddenInputIds
- A set including all the hidden TV input IDsuserId
- The user ID for the stored hidden input setpublic static void putCustomLabels(Context context, Map<String,String> customLabels, int userId)
context
- The application context.customLabels
- A map of TV input ID/custom label pairsuserId
- The user ID for the stored hidden input map