C# Класс admob.Admob

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Instance ( ) : Admob
initAdmob ( string bannerID, string fullID ) : void
isInterstitialReady ( ) : bool
isRewardedVideoReady ( ) : bool
loadInterstitial ( ) : void
loadRewardedVideo ( string rewardedVideoID ) : void
removeBanner ( string instanceName = "defaultBanner" ) : void
removeNativeBanner ( string instanceName = "defaultNativeBanner" ) : void
setForChildren ( bool v ) : void
setTesting ( bool v ) : void
showBannerAbsolute ( AdSize size, int x, int y, string instanceName = "defaultBanner" ) : void
showBannerRelative ( AdSize size, int position, int marginY, string instanceName = "defaultBanner" ) : void
showInterstitial ( ) : void
showNativeBannerAbsolute ( AdSize size, int x, int y, string nativeBannerID, string instanceName = "defaultNativeBanner" ) : void
showNativeBannerRelative ( AdSize size, int position, int marginY, string nativeBannerID, string instanceName = "defaultNativeBanner" ) : void
showRewardedVideo ( ) : void

Приватные методы

Метод Описание
_kminitAdmob ( string bannerid, string fullid, AdmobAdCallBack callback ) : void
_kmisInterstitialReady ( ) : bool
_kmisRewardedVideoReady ( ) : bool
_kmloadInterstitial ( ) : void
_kmloadRewardedVideo ( string rewardedVideoID ) : void
_kmremoveBanner ( string instanceName ) : void
_kmremoveNativeBanner ( string instanceName ) : void
_kmsetForChildren ( bool v ) : void
_kmsetTesting ( bool v ) : void
_kmshowBannerAbsolute ( int width, int height, int x, int y, string instanceName ) : void
_kmshowBannerRelative ( int width, int height, int position, int marginY, string instanceName ) : void
_kmshowInterstitial ( ) : void
_kmshowNativeBannerAbsolute ( int width, int height, int x, int y, string nativeID, string instanceName ) : void
_kmshowNativeBannerRelative ( int width, int height, int position, int marginY, string nativeID, string instanceName ) : void
_kmshowRewardedVideo ( ) : void
onAdmobEventCallBack ( string adtype, string eventName, string msg ) : void
preInitAdmob ( ) : void

Описание методов

Instance() публичный статический Метод

public static Instance ( ) : Admob
Результат Admob

initAdmob() публичный Метод

public initAdmob ( string bannerID, string fullID ) : void
bannerID string
fullID string
Результат void

isInterstitialReady() публичный Метод

public isInterstitialReady ( ) : bool
Результат bool

isRewardedVideoReady() публичный Метод

public isRewardedVideoReady ( ) : bool
Результат bool

loadInterstitial() публичный Метод

public loadInterstitial ( ) : void
Результат void

loadRewardedVideo() публичный Метод

public loadRewardedVideo ( string rewardedVideoID ) : void
rewardedVideoID string
Результат void

removeBanner() публичный Метод

public removeBanner ( string instanceName = "defaultBanner" ) : void
instanceName string
Результат void

removeNativeBanner() публичный Метод

public removeNativeBanner ( string instanceName = "defaultNativeBanner" ) : void
instanceName string
Результат void

setForChildren() публичный Метод

public setForChildren ( bool v ) : void
v bool
Результат void

setTesting() публичный Метод

public setTesting ( bool v ) : void
v bool
Результат void

showBannerAbsolute() публичный Метод

public showBannerAbsolute ( AdSize size, int x, int y, string instanceName = "defaultBanner" ) : void
size AdSize
x int
y int
instanceName string
Результат void

showBannerRelative() публичный Метод

public showBannerRelative ( AdSize size, int position, int marginY, string instanceName = "defaultBanner" ) : void
size AdSize
position int
marginY int
instanceName string
Результат void

showInterstitial() публичный Метод

public showInterstitial ( ) : void
Результат void

showNativeBannerAbsolute() публичный Метод

public showNativeBannerAbsolute ( AdSize size, int x, int y, string nativeBannerID, string instanceName = "defaultNativeBanner" ) : void
size AdSize
x int
y int
nativeBannerID string
instanceName string
Результат void

showNativeBannerRelative() публичный Метод

public showNativeBannerRelative ( AdSize size, int position, int marginY, string nativeBannerID, string instanceName = "defaultNativeBanner" ) : void
size AdSize
position int
marginY int
nativeBannerID string
instanceName string
Результат void

showRewardedVideo() публичный Метод

public showRewardedVideo ( ) : void
Результат void