Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
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
    languagejava
    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
languagejava
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
languagejava
final FeedConfig popFeedConfig = new FeedConfig.Builder("YOUR_POP_UNIT_ID")
    ...생략...
    .feedToolbarHolderClass(YourPopToolbarHolder.class)
    .build();
new PopConfig.Builder(getApplicationContext(), popFeedConfig)
    ...생략...
    .build();

...

Code Block
languagejava
final FeedConfig popFeedConfig = new FeedConfig.Builder("YOUR_POP_UNIT_ID")
    ...생략...
    .feedToolbarHolderClass(YourPopToolbarHolder.class)
    .build();
new PopConfig.Builder(getApplicationContext(), popFeedConfig)
    ...생략...
    .build();

...

Code Block
languagejava
new PopConfig.Builder(getApplicationContext(), "YOUR_POP_UNIT_ID"popFeedConfig)
      .popUtilityLayoutHandlerClass(CustomPopUtilityLayoutHandler.class)
      .build();

...