Versions Compared

Key

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

...

Expand
titleObjective-C
Code Block
languageobjective-c
BABInterstitialConfig *config = [[BABInterstitialConfig alloc] init];
[config setTopIcon:[UIImage imageNamed:@"@youryour_icon"]]; // Interstitial 지면 상단에 있는 아이콘
[config setTitleText:@"지금 바로 참여하고 포인트 받기"]; // Interstitial 지면 상단에 있는 Text
[config setTitleTextColor:UIColor.blueColor]; // Interstitial 지면 상단에 있는 Text 색상
[config setBackgroundColor:UIColor.whiteColor]; // Interstitial 지면 배경색 
[config setShowInquiryButton:YES]; // 문의하기 버튼 노출 여부
[config setCtaViewIcon:[[BABStateValue<UIImage *> alloc] initWithEnabled:[UIImage imageNamed:@"icyour_appleicon"] disabled:[UIImage imageNamed:@"ic_check"]]]; // CTA에 포함된 기본 아이콘
[config setCtaViewTextColor:[[BABStateValue<UIColor *> alloc] initWithEnabled:UIColor.yellowColorgrayColor disabled:UIColor.grayColorredColor]]; // CTA의 Text 색상
[config setCtaViewBackgroundColor:[[BABStateValue<UIColor *> alloc] initWithEnabled:UIColor.redColor disabled:UIColor.grayColor]]; // CTA의 배경색

[interstitialAdHandler show:self withConfig:config];

Expand
titleSwift
Code Block
languageswift
let config = BABInterstitialConfig()
config.topIcon = UIImage(named: "your_icon")! // Interstitial 지면 상단에 있는 아이콘
config.titleText = "지금 바로 참여하고 포인트 받기" // Interstitial 지면 상단에 있는 Text
config.titleTextColor = .blue // Interstitial 지면 상단에 있는 Text 색상
config.backgroundColor = .white // Interstitial 지면 배경색 
config.showInquiryButton = false // 문의하기 버튼 노출 여부
config.ctaViewIcon = BABStateValue<UIImage>(enabled: UIImage(named: "icyour_appleicon")!, disabled: UIImage(named: "ic_check")!) // CTA에 포함된 기본 아이콘 
config.ctaViewTextColor = BABStateValue<UIColor>(enabled: .yellowgray, disabled: .grayred) // CTA의 Text 색상
config.ctaViewBackgroundColor = BABStateValue<UIColor>(enabled: .red, disabled: .gray) // CTA의 배경색
  
interstitialAdHandler.show(self, with: config)

...