GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemCustomMapping - Android

A class designed to facilitate custom key-value mappings for Blaze widget items. It enables the association of specific data points with a widget item, allowing for flexible data representation within the widget.

key

val key: String

The key for the custom mapping, represented as a String. This key identifies the type of data or attribute the value corresponds to.

value

val value: String

The value for the custom mapping, represented as a String. This value contains the specific data or attribute associated with the key.

Enums

BlazeKeysPresets

An enumeration defining preset keys for commonly used attributes in Blaze widget items. This facilitates easier and more consistent key management across different implementations of the widget.

ValueRawValueDescription
GAME_ID"gameId"Represents a game identifier.
TEAM_ID"teamId"Represents a team identifier.
PLAYER_ID"playerId"Represents a player identifier.

Initialization

Initializes a new instance of BlazeWidgetItemCustomMapping with explicit key and value strings.

Parameters:

  • key: A String representing the key for the mapping.
  • value: A String representing the value associated with the key.
BlazeWidgetItemCustomMapping("someKey", "someValue")

Initializes a new instance of BlazeWidgetItemCustomMapping using a predefined key preset and a custom value string.

Parameters:

  • keyPreset: A KeysPresets enum value representing a predefined key.
  • value: A String representing the value associated with the predefined key.
BlazeWidgetItemCustomMapping(BlazeKeysPresets.GAME_ID.value, "someValue")

Did this page help you?