Class: AdMob
Constructors
constructor
• new AdMob()
Defined in
index.ts:49
Properties
AppOpenAd
• Readonly
AppOpenAd: typeof AppOpenAd
Defined in
index.ts:39
BannerAd
• Readonly
BannerAd: typeof BannerAd
Defined in
index.ts:40
Events
• Readonly
Events: typeof Events
Defined in
index.ts:46
InterstitialAd
• Readonly
InterstitialAd: typeof InterstitialAd
Defined in
index.ts:41
NativeAd
• Readonly
NativeAd: typeof NativeAd
Defined in
index.ts:42
RewardedAd
• Readonly
RewardedAd: typeof RewardedAd
Defined in
index.ts:43
RewardedInterstitialAd
• Readonly
RewardedInterstitialAd: typeof RewardedInterstitialAd
Defined in
index.ts:44
TrackingAuthorizationStatus
• Readonly
TrackingAuthorizationStatus: typeof TrackingAuthorizationStatus
Defined in
index.ts:47
createAd
• Readonly
createAd: <Ad, O>(cls
: { type
: string
}, opts
: O
) => Promise
<InstanceType<typeof MobileAd>>
Type declaration
▸ <Ad, O>(cls
, opts
): Promise
<InstanceType<typeof MobileAd>>
Type parameters
Name | Type |
---|---|
Ad | Ad : MobileAd<MobileAdOptions, Ad> |
O | O = O |
Parameters
Name | Type |
---|---|
cls | Object |
cls.type | string |
opts | O |
Returns
Promise
<InstanceType<typeof MobileAd>>
Defined in
index.ts:49
Methods
configRequest
▸ configRequest(requestConfig
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
requestConfig | RequestConfig |
Returns
Promise
<unknown
>
Defined in
index.ts:72
requestTrackingAuthorization
▸ requestTrackingAuthorization(): Promise
<false
| TrackingAuthorizationStatus>
Returns
Promise
<false
| TrackingAuthorizationStatus>
Defined in
index.ts:88
setAppMuted
▸ setAppMuted(value
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
value | boolean |
Returns
Promise
<unknown
>
Defined in
index.ts:76
setAppVolume
▸ setAppVolume(value
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
value | number |
Returns
Promise
<unknown
>
Defined in
index.ts:80
start
▸ start(): Promise
<Object
>
Returns
Promise
<Object
>
Defined in
index.ts:84