Topic preferences
Batch.Profile.editor().apply {
setTopicPreferences(listOf("technology", "finance")) // Null to erase.
// Alternatively, partially update them with:
addToTopicPreferences(listOf("investing"))
removeFromTopicPreferences(listOf("travel"))
save()
}Batch.Profile.editor()
.setTopicPreferences(listOf("topic1", "topic2")) // Null to erase.
// Alternatively, partially update them with:
.addToTopicPreferences(listOf("topic3"))
.removeFromTopicPreferences(listOf("topic4"))
.save()
}Last updated

