build
Builds and returns an immutable TagsBundle instance with all added tags.
This method finalizes the tag collection and creates an immutable TagsBundle that can be safely passed to sendTags or other methods. After calling build(), the Builder can still be reused to create additional TagsBundle instances, but changes to the Builder will not affect previously built instances.
Usage Pattern:
// Build a TagsBundle
TagsBundle tags = new TagsBundle.Builder()
.putString("name", "John")
.putInt("age", 30)
.putBoolean("premium", true)
.build();
// Send to Pushwoosh
Pushwoosh.getInstance().sendTags(tags);
// Read tags from the bundle
String name = tags.getString("name"); // "John"
int age = tags.getInt("age", 0); // 30
Content copied to clipboard
Return
immutable TagsBundle instance containing all added tags