react-native-aps
Classes
Interfaces
References
default
Renames and re-exports APSAds
Type aliases
AdLoaderEvent
Ƭ AdLoaderEvent: typeof AdLoaderEvent
[keyof typeof AdLoaderEvent
]
Defined in
AdLoaderListener
Ƭ AdLoaderListener<E
>: (payload
: E
extends typeof SUCCESS
? { [key: string]
: string
; } : E
extends typeof FAILURE
? AdError
: never
) => void
Type parameters
Name | Type |
---|---|
E | extends AdLoaderEvent |
Type declaration
▸ (payload
): void
Parameters
Name | Type |
---|---|
payload | E extends typeof SUCCESS ? { [key: string] : string ; } : E extends typeof FAILURE ? AdError : never |
Returns
void
Defined in
src/types/AdLoaderListener.ts:4
AdNetwork
Ƭ AdNetwork: typeof AdNetwork
[keyof typeof AdNetwork
]
Defined in
AdType
Ƭ AdType: typeof AdType
[keyof typeof AdType
]
Defined in
MRAIDPolicy
Ƭ MRAIDPolicy: typeof MRAIDPolicy
[keyof typeof MRAIDPolicy
]
Defined in
Variables
AdLoaderEvent
• Const
AdLoaderEvent: Object
Type declaration
Name | Type |
---|---|
FAILURE | "onFailure" |
SUCCESS | "onSuccess" |
Defined in
AdNetwork
• Const
AdNetwork: Object
Type declaration
Name | Type |
---|---|
ADMOB | "ADMOB" |
AD_GENERATION | "AD_GENERATION" |
GOOGLE_AD_MANAGER | "GOOGLE_AD_MANAGER" |
IRON_SOURCE | "IRON_SOURCE" |
MAX | "MAX" |
NIMBUS | "NIMBUS" |
OTHER | "OTHER" |
Defined in
AdType
• Const
AdType: Object
Type declaration
Name | Type |
---|---|
BANNER | "banner" |
INTERSTITIAL | "interstitial" |
Defined in
MRAIDPolicy
• Const
MRAIDPolicy: Object
Type declaration
Name | Type |
---|---|
CUSTOM | "CUSTOM" |
DFP | "DFP" |
NONE | "NONE" |
Defined in
TestIds
• Const
TestIds: Object
Type declaration
Name | Type |
---|---|
APS_APP_KEY | string |
APS_SLOT_BANNER_320x50 | string |
APS_SLOT_BANNER_728x90 | string |
APS_SLOT_INTERSTITIAL | string |
GAM_BANNER | string |
GAM_INTERSTITIAL | string |
Defined in
Functions
isAdError
▸ isAdError(error
): error is AdError
Type guard for AdError.
Parameters
Name | Type | Description |
---|---|---|
error | unknown | Uknown error object |
Returns
error is AdError
Whether the error is an AdError