...
Code Block | ||
---|---|---|
| ||
final FeedConfig popFeedConfig = new FeedConfig.Builder("YOUR_POP_UNIT_ID").build();
final PopConfig popConfig = new PopConfig.Builder(getApplicationContext(), popFeedConfig)
.build();
final BuzzAdBenefitConfig buzzAdBenefitConfig = new BuzzAdBenefitConfig.Builder(context)
...생략...
.setPopConfig(popConfig)
.build();
BuzzAdBenefit.init(this, buzzAdBenefitConfig); |
...
PopConfig를 설정하지 않고, FeedConfig를 아래와 같이 설정한 경우
Code Block FeedConfig feedConfig = new FeedConfig.Builder("YOUR_POP_UNIT_ID") .optInFeatureList(Collections.singletonList(OptInFeature.Pop)) .build();
PopConfig를 설정한 경우
Code Block language java FeedConfig feedConfig = new FeedConfig.Builder("YOUR_POP_UNIT_ID").build(); PopConfig popConfig = new PopConfig.Builder(getApplicationContext(), feedConfig) .build(); final BuzzAdBenefitConfig buzzAdBenefitConfig = new BuzzAdBenefitConfig.Builder(context) .setPopConfig(popConfig) // PopConfig 설정 .build(); BuzzAdBenefit.init(this, buzzAdBenefitConfig);
...
Code Block | ||
---|---|---|
| ||
final PopNotificationConfig popNotificationConfig = new PopNotificationConfig.Builder(getApplicationContext()) .notificationId(NOTIFICATION_ID) .build(); final FeedConfig popFeedConfig = new FeedConfig.Builder("YOUR_POP_UNIT_ID").build(); final PopConfig popConfig = new PopConfig.Builder(getApplicationContext(), popFeedConfig) .popNotificationConfig(popNotificationConfig) .controlService(YourControlService.class) .build(); final BuzzAdBenefitConfig buzzAdBenefitConfig = new BuzzAdBenefitConfig.Builder(context) .setPopConfig(popConfig) .build(); |
...
Code Block | ||
---|---|---|
| ||
final FeedConfig popFeedConfig = new FeedConfig.Builder("YOUR_POP_UNIT_ID") ...생략... .feedToolbarHolderClass(YourPopToolbarHolder.class) .build(); new PopConfig.Builder(getApplicationContext(), popFeedConfig) ...생략... .build(); |
...
Code Block | ||
---|---|---|
| ||
final FeedConfig popFeedConfig = new FeedConfig.Builder("YOUR_POP_UNIT_ID") ...생략... .feedToolbarHolderClass(YourPopToolbarHolder.class) .build(); new PopConfig.Builder(getApplicationContext(), popFeedConfig) ...생략... .build(); |
...
Code Block | ||
---|---|---|
| ||
new PopConfig.Builder(getApplicationContext(), "YOUR_POP_UNIT_ID"popFeedConfig) .popUtilityLayoutHandlerClass(CustomPopUtilityLayoutHandler.class) .build(); |
...