react-native-aps
Enumerations
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
Variables
AdLoaderEvent
• Const AdLoaderEvent: Object
Type declaration
| Name | Type |
|---|---|
FAILURE | "onFailure" |
SUCCESS | "onSuccess" |
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 |
|---|---|
error | unknown |
Returns
error is AdError