...
Code Block |
---|
|
public class YourPedometerPopHeaderViewAdapter extends PedometerPopHeaderViewAdapter {
@NotNull
@Override
public View createView(@NotNull Context context, @NotNull ViewGroup parent) {
this.context
= context; View view = LayoutInflater.from(context).inflate(
R.layout.your_custom_header_layout,
parent,
false
);
setPedometer(); // API를 이용하여 자체 구현
return view;
}
} |
BuzzAdBenefit
초기화 시, Pop 의 FeedConfig 에서 MyPedometerPopHeaderViewAdapter
사용하도록 설정합니다.
Code Block |
---|
|
final FeedConfig feedConfig = new FeedConfig.Builder(getApplicationContext(), UNIT_ID_POP)
@Nullable
@Override
public PopPedometerHeaderEventListener .feedHeaderViewAdapterClassgetPopPedometerHeaderEventListener(YourPedometerPopHeaderViewAdapter.class) {
.build(); // 구현 필요.
}
} |
BuzzAdBenefit
초기화 시, Pop 의 FeedConfig 에서 MyPedometerPopHeaderViewAdapter
사용하도록 설정합니다.
Code Block |
---|
|
PopConfig popConfig = new PopConfig.Builder(getApplicationContext(), "YOUR_UNIT_ID_POP")
.feedConfigfeedHeaderViewAdapterClass(feedConfigYourPedometerPopHeaderViewAdapter.class)
.build();
final BuzzAdBenefitConfig buzzAdBenefitConfig = new BuzzAdBenefitConfig.Builder(this)
.setPopConfig(popConfig)
.build();
BuzzAdBenefit.init(this, buzzAdBenefitConfig); |
...
Code Block |
---|
final PedometerConfig pedometerConfig new PedometerConfig.Builder(context, "YOUR_UNIT_ID_PEDOMETER", "YOUR_UNIT_ID_PEDOMETER_REWARD")
.tutorialUrl("YOUR_TUTORIAL_URL")
.build();
final PopConfig popConfig = new PopConfig.Builder(context, unitIdPop)
.pedometerConfig(pedometerConfig)
.build(); |
만보기 광고 지면 추가: 진입
...