Skip to main content

react-native-aps

Classes

Interfaces

References

default

Renames and re-exports APSAds

Type aliases

AdLoaderEvent

Ƭ AdLoaderEvent: typeof AdLoaderEvent[keyof typeof AdLoaderEvent]

Defined in

src/types/AdLoaderEvent.ts:30


AdLoaderListener

Ƭ AdLoaderListener<E>: (payload: E extends typeof SUCCESS ? { [key: string]: string; } : E extends typeof FAILURE ? AdError : never) => void

Type parameters

NameType
Eextends AdLoaderEvent

Type declaration

▸ (payload): void

Parameters
NameType
payloadE 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

src/types/AdNetwork.ts:35


AdType

Ƭ AdType: typeof AdType[keyof typeof AdType]

Defined in

src/types/AdType.ts:30


MRAIDPolicy

Ƭ MRAIDPolicy: typeof MRAIDPolicy[keyof typeof MRAIDPolicy]

Defined in

src/types/MRAIDPolicy.ts:31

Variables

AdLoaderEvent

Const AdLoaderEvent: Object

Type declaration

NameType
FAILURE"onFailure"
SUCCESS"onSuccess"

Defined in

src/types/AdLoaderEvent.ts:22


AdNetwork

Const AdNetwork: Object

Type declaration

NameType
ADMOB"ADMOB"
AD_GENERATION"AD_GENERATION"
GOOGLE_AD_MANAGER"GOOGLE_AD_MANAGER"
IRON_SOURCE"IRON_SOURCE"
MAX"MAX"
NIMBUS"NIMBUS"
OTHER"OTHER"

Defined in

src/types/AdNetwork.ts:22


AdType

Const AdType: Object

Type declaration

NameType
BANNER"banner"
INTERSTITIAL"interstitial"

Defined in

src/types/AdType.ts:22


MRAIDPolicy

Const MRAIDPolicy: Object

Type declaration

NameType
CUSTOM"CUSTOM"
DFP"DFP"
NONE"NONE"

Defined in

src/types/MRAIDPolicy.ts:22


TestIds

Const TestIds: Object

Type declaration

NameType
APS_APP_KEYstring
APS_SLOT_BANNER_320x50string
APS_SLOT_BANNER_728x90string
APS_SLOT_INTERSTITIALstring
GAM_BANNERstring
GAM_INTERSTITIALstring

Defined in

src/TestIds.ts:24

Functions

isAdError

isAdError(error): error is AdError

Type guard for AdError.

Parameters

NameTypeDescription
errorunknownUknown error object

Returns

error is AdError

Whether the error is an AdError

Defined in

src/AdError.ts:49