In Dagger, we can pass the runtime parameter through component.builder. But how to achieve that in hilt where the Component is Built in?
public class ProgressData {
private int percent;
@Inject
public ProgressData(int percent) {
this.percent = percent;
}
public int getPercent() {
return percent;
}
public void setPercent(int percent) {
this.percent = percent;
}
How to inject an object of ProgressData in the main activity while percent data is set in runtime?