useAdropInterstitialAd

Interstitial ad hook์€ ์ „๋ฉด ๊ด‘๊ณ ๋ฅผ ์š”์ฒญํ•˜๊ณ  ์‚ฌ์šฉ์ž์—๊ฒŒ ๋…ธ์ถœํ•ฉ๋‹ˆ๋‹ค.


const { 
    isLoaded,
    isOpened,
    isClicked,
    isClosed,
    errorCode,
    load,
    show,
    reset
} = useAdropInterstitialAd(unitId: string)

๊ด‘๊ณ  ์œ ๋‹› ID๋ฅผ ํ•„์ˆ˜๋กœ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.


Returns

isLoaded: boolean

๊ด‘๊ณ ๊ฐ€ ์™„์ „ํžˆ ๋กœ๋“œ๋˜์—ˆ๋Š”์ง€ ํ™•์ธ(Determine)ํ•ฉ๋‹ˆ๋‹ค.

isOpened: boolean

๊ด‘๊ณ ๊ฐ€ ์™„์ „ํžˆ ๋ณด์—ฌ์กŒ๋Š”์ง€ ํ™•์ธ(Determine)ํ•ฉ๋‹ˆ๋‹ค.

isClicked: boolean

๊ด‘๊ณ ๊ฐ€ ํด๋ฆญ ๋˜์—ˆ๋Š”์ง€ ํ™•์ธ(Determine)ํ•ฉ๋‹ˆ๋‹ค.

isClosed: boolean

๊ด‘๊ณ ๊ฐ€ ์‚ฌ๋ผ์กŒ๋Š”์ง€ ํ™•์ธ(Determine)ํ•ฉ๋‹ˆ๋‹ค.

errorCode: string?

๊ด‘๊ณ ๊ฐ€ ์ˆ˜์‹  ๋˜๋Š” ๋…ธ์ถœ์— ์‹คํŒจํ•œ ๊ฒฝ์šฐ์˜ AdropErrorCode์ž…๋‹ˆ๋‹ค.

load: () -> void

๊ด‘๊ณ  ์œ ๋‹› ID๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ Adrop์—์„œ ๊ด‘๊ณ ๋ฅผ ์š”์ฒญํ•ฉ๋‹ˆ๋‹ค.

show: () -> void

๊ด‘๊ณ  ์œ ๋‹› ID๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ Adrop์˜ ๊ด‘๊ณ ๋ฅผ ๋…ธ์ถœํ•ฉ๋‹ˆ๋‹ค.

show๊ฐ€ ํ˜ธ์ถœ๋˜๊ธฐ ์ „์— ์™„์ „ํžˆ ๋กœ๋“œ๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

reset: () -> void

์ƒˆ ๊ด‘๊ณ ๋ฅผ ์š”์ฒญํ•˜๊ธฐ ์œ„ํ•ด ์žฌ์„ค์ •ํ•˜๊ฑฐ๋‚˜ ๋ฉ”๋ชจ๋ฆฌ ํ•ด์ œ๋ฅผ ์œ„ํ•ด ๊ด‘๊ณ ๋ฅผ Destroyํ•ฉ๋‹ˆ๋‹ค.

Last updated