to top
Datalogic APIs
public class

QuickSettingsTiles

extends Object
java.lang.Object
   ↳ com.datalogic.device.configuration.QuickSettingsTiles

Class Overview

QuickSettingsTiles provides information about the available tiles in the Quick Settings panel. It offers methods to retrieve both system and custom tiles, as well as the correspondence between the ID and the name for the tiles currently available on the device.

In particular, Android offers two types of tiles in the Quick Settings panel: System and App tiles.
System tiles are built into the Android operating system and provide essential device functionalities. In contrast, App or Custom tiles offer quick access to functionalities provided by applications, such as Google Mobile Services (GMS). Therefore, they can be customized and added by installing third-party applications that provide this capability.

See QUICK_SETTINGS_PANEL_TILES for more info about tiles.

Summary

Public Methods
static HashMap<String, String> getAvailableCustomTiles(Context context)
Get a map with all available custom tiles in the format .
static HashMap<String, String> getAvailableSystemTiles(Context context)
Get a map with all available system tiles in the format .
static String getTileIdByName(Context context, String name)
Retrieve the corresponding tile ID, given its name.
static String getTileNameById(Context context, String id)
Retrieve the corresponding tile name, given its ID.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static HashMap<String, String> getAvailableCustomTiles (Context context)

Added in revision 40

Get a map with all available custom tiles in the format .

Parameters
context Context
Returns
  • HashMap the map of available custom tiles.

public static HashMap<String, String> getAvailableSystemTiles (Context context)

Added in revision 40

Get a map with all available system tiles in the format .

Parameters
context Context
Returns
  • HashMap the map of available system tiles.

public static String getTileIdByName (Context context, String name)

Added in revision 40

Retrieve the corresponding tile ID, given its name.

Parameters
context Context
name String
Returns
  • String the corresponding tile ID

public static String getTileNameById (Context context, String id)

Added in revision 40

Retrieve the corresponding tile name, given its ID.

Parameters
context Context
id String
Returns
  • String the corresponding tile name