DeviceKey

Enum for the keys the server is expecting for the device object.

Entries

Link copied to clipboard

The current reported android version.

Link copied to clipboard

The mobile carrier.

Link copied to clipboard

The specific brand hardware of the device (e.g. Samsung, Google, LG).

Link copied to clipboard

The specific model hardware of the device (e.g. Galaxy S21, Pixel 7, G8).

Link copied to clipboard

Device resolution as WIDTHxHEIGHT.

Link copied to clipboard

The default locale of the device. The format of this key is "en_US" or "language_COUNTRY".

Link copied to clipboard

The device time zone.

Link copied to clipboard

Whether this app has notifications enabled.

Link copied to clipboard

Whether background restrictions exist on the app. This should correspond to android.app.ActivityManager.isBackgroundRestricted

Link copied to clipboard

The Google Advertising ID. Note that this is not collected automatically by the SDK and must be passed in via com.braze.IBraze.setGoogleAdvertisingId.

Link copied to clipboard

Google Advertising ID's limit ad-tracking field. Note that when "limit ad tracking" is enabled on the Google Advertising ID, it means that ad tracking should be disabled.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val key: String
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): DeviceKey

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.