AdropNativeAdDelegate

protocol AdropNativeAdDelegate {

    @objc func onAdReceived(_ ad: AdropAds.AdropNativeAd)

    @objc func onAdFailedToReceive(_ ad: AdropAds.AdropNativeAd, _ errorCode: AdropAds.AdropErrorCode)

    @objc func onAdClicked(_ ad: AdropAds.AdropNativeAd)
}

AdropNativeAd์— ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด ์žˆ์„ ๋•Œ ํ˜ธ์ถœ๋˜๋Š” Delegate์ž…๋‹ˆ๋‹ค.


Public functions

func onAdReceived(_ ad: AdropNativeAd)

func onAdReceived(_ ad: AdropNativeAd)

์ด ๋ฉ”์†Œ๋“œ๋Š” AdropNative๊ฐ€ ๊ด‘๊ณ ๋ฅผ ์ˆ˜์‹ ํ•  ๋•Œ UI ์Šค๋ ˆ๋“œ์—์„œ ํ˜ธ์ถœ๋ฉ๋‹ˆ๋‹ค.

func onAdFailedToReceive(_ ad: AdropNativeAd, _ errorCode: AdropErrorCode)

func onAdFailedToReceive(_ ad: AdropNativeAd, _ errorCode: AdropErrorCode)

์ด ๋ฉ”์†Œ๋“œ๋Š” AdropNative๊ฐ€ ๊ด‘๊ณ  ์ˆ˜์‹ ์— ์‹คํŒจํ–ˆ์„ ๋•Œ UI ์Šค๋ ˆ๋“œ์—์„œ ํ˜ธ์ถœ๋ฉ๋‹ˆ๋‹ค.

func onAdClicked(_ ad: AdropNativeAd)

func onAdClicked(_ ad: AdropNativeAd)

์ด ๋ฉ”์†Œ๋“œ๋Š” AdropNative๊ฐ€ ํด๋ฆญ ๋˜์—ˆ์„ ๋•Œ UI ์Šค๋ ˆ๋“œ์—์„œ ํ˜ธ์ถœ๋ฉ๋‹ˆ๋‹ค.

Last updated