putInt

open fun putInt(key: String, value: Int): TagsBundle.Builder

Adds a tag with an integer value.

Use for demographics (age, zip code), counters (items in cart, articles read), scores (loyalty points, game level), or other numeric attributes that fit within the integer range (-2,147,483,648 to 2,147,483,647).

Example (E-commerce App):


		new TagsBundle.Builder()
		    .putInt("age", 35)
		    .putInt("cart_items", 3)
		    .putInt("loyalty_points", 1250)
		    .putInt("items_viewed_today", 12)
		    .build();
		

Return

this Builder instance for method chaining

Parameters

key

tag name (e.g., "age", "loyalty_points", "cart_items")

value

integer value to store