mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-08-04 00:00:08 +08:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8edd359b2 |
@@ -3,10 +3,27 @@ import { AwesomeCordovaNativePlugin, Cordova, Plugin } from '@awesome-cordova-pl
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
export interface InitializeConfig {
|
||||
hasUserConsentValue: boolean;
|
||||
isAgeRestrictedUserValue: boolean;
|
||||
isDoNotSellValue: boolean;
|
||||
isTabletValue: boolean;
|
||||
/**
|
||||
* @deprecated Never populated by the native SDKs. Use `hasUserConsent` instead.
|
||||
*/
|
||||
hasUserConsentValue?: boolean;
|
||||
/**
|
||||
* @deprecated Never populated by the native SDKs, and the underlying `isAgeRestrictedUser`
|
||||
* field was removed upstream in cordova-plugin-applovin-max@2.0.0.
|
||||
*/
|
||||
isAgeRestrictedUserValue?: boolean;
|
||||
/**
|
||||
* @deprecated Never populated by the native SDKs. Use `isDoNotSell` instead.
|
||||
*/
|
||||
isDoNotSellValue?: boolean;
|
||||
/**
|
||||
* @deprecated Never populated by the native SDKs. Use `isTablet` instead.
|
||||
*/
|
||||
isTabletValue?: boolean;
|
||||
hasUserConsent: boolean;
|
||||
isDoNotSell: boolean;
|
||||
isTablet: boolean;
|
||||
countryCode: string;
|
||||
}
|
||||
|
||||
export interface AdInfo {
|
||||
@@ -17,6 +34,11 @@ export interface AdInfo {
|
||||
revenue: number;
|
||||
}
|
||||
|
||||
export interface AdRewardInfo extends AdInfo {
|
||||
rewardLabel: string;
|
||||
rewardAmount: number;
|
||||
}
|
||||
|
||||
export enum AdViewPosition {
|
||||
TOP_CENTER = 'top_center',
|
||||
TOP_RIGHT = 'top_right',
|
||||
@@ -28,6 +50,10 @@ export enum AdViewPosition {
|
||||
BOTTOM_RIGHT = 'bottom_right',
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Only produced by the now-removed `getConsentDialogState` method
|
||||
* (removed upstream in cordova-plugin-applovin-max@2.0.0).
|
||||
*/
|
||||
export enum ConsentDialogState {
|
||||
UNKNOWN = 0,
|
||||
APPLIES = 1,
|
||||
@@ -80,11 +106,22 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether the SDK has been initialized.
|
||||
*/
|
||||
@Cordova()
|
||||
isInitialized(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
showMediationDebugger(): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Removed upstream in cordova-plugin-applovin-max@2.0.0.
|
||||
*/
|
||||
@Cordova()
|
||||
getConsentDialogState(): Promise<ConsentDialogState> {
|
||||
return;
|
||||
@@ -100,11 +137,17 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Removed upstream in cordova-plugin-applovin-max@2.0.0.
|
||||
*/
|
||||
@Cordova()
|
||||
setIsAgeRestrictedUser(isAgeRestrictedUser: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Removed upstream in cordova-plugin-applovin-max@2.0.0.
|
||||
*/
|
||||
@Cordova()
|
||||
isAgeRestrictedUser(): Promise<boolean> {
|
||||
return;
|
||||
@@ -130,8 +173,11 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {boolean} muted Whether ads should be muted.
|
||||
*/
|
||||
@Cordova()
|
||||
setMuted(): Promise<boolean> {
|
||||
setMuted(muted: boolean): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -145,6 +191,19 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/** SEGMENT TARGETING */
|
||||
|
||||
/**
|
||||
* Add a segment for segment targeting. Must be called before `initialize()`.
|
||||
*
|
||||
* @param {number} key The segment key.
|
||||
* @param {number[]} values The segment values.
|
||||
*/
|
||||
@Cordova()
|
||||
addSegment(key: number, values: number[]): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
trackEvent(event: string, parameters?: object): Promise<any> {
|
||||
return;
|
||||
@@ -167,6 +226,11 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
updateBannerPosition(adUnitId: string, position: AdViewPosition): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setBannerExtraParameter(adUnitId: string, key: string, value: string): Promise<any> {
|
||||
return;
|
||||
@@ -187,6 +251,46 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnBannerAdLoadedEvent',
|
||||
})
|
||||
onBannerAdLoaded(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnBannerAdLoadFailedEvent',
|
||||
})
|
||||
onBannerAdLoadFailed(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnBannerAdClickedEvent',
|
||||
})
|
||||
onBannerAdClicked(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnBannerAdExpandedEvent',
|
||||
})
|
||||
onBannerAdExpanded(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnBannerAdCollapsedEvent',
|
||||
})
|
||||
onBannerAdCollapsed(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
/** MRECS */
|
||||
|
||||
@Cordova()
|
||||
@@ -204,6 +308,11 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
updateMRecPosition(adUnitId: string, position: AdViewPosition): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
setMRecExtraParameter(adUnitId: string, key: string, value: string): Promise<any> {
|
||||
return;
|
||||
@@ -224,6 +333,46 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnMRecAdLoadedEvent',
|
||||
})
|
||||
onMRecAdLoaded(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnMRecAdLoadFailedEvent',
|
||||
})
|
||||
onMRecAdLoadFailed(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnMRecAdClickedEvent',
|
||||
})
|
||||
onMRecAdClicked(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnMRecAdExpandedEvent',
|
||||
})
|
||||
onMRecAdExpanded(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnMRecAdCollapsedEvent',
|
||||
})
|
||||
onMRecAdCollapsed(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
/** INTERSTITIALS */
|
||||
|
||||
@Cordova()
|
||||
@@ -231,6 +380,14 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} adUnitId The ad unit id to check.
|
||||
*/
|
||||
@Cordova()
|
||||
isInterstitialReady(adUnitId: string): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
showInterstitial(adUnitId: string, placement?: string): Promise<any> {
|
||||
return;
|
||||
@@ -249,6 +406,14 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnInterstitialClickedEvent',
|
||||
})
|
||||
onInterstitialClicked(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnInterstitialLoadFailedEvent',
|
||||
@@ -288,6 +453,14 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} adUnitId The ad unit id to check.
|
||||
*/
|
||||
@Cordova()
|
||||
isRewardedAdReady(adUnitId: string): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova()
|
||||
showRewardedAd(adUnitId: string, placement?: string): Promise<any> {
|
||||
return;
|
||||
@@ -306,6 +479,14 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnRewardedAdClickedEvent',
|
||||
})
|
||||
onRewardedAdClicked(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnRewardedAdLoadFailedEvent',
|
||||
@@ -332,9 +513,17 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnRewardedAdAdFailedToDisplayEvent',
|
||||
event: 'OnRewardedAdFailedToDisplayEvent',
|
||||
})
|
||||
onRewardedAdAdFailedToDisplay(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnRewardedAdReceivedRewardEvent',
|
||||
})
|
||||
onRewardedAdReceivedReward(): Observable<AdRewardInfo> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -219,17 +219,6 @@ export class Intercom extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Suppress the given proactive content types, independently of `setInAppMessageVisibility`.
|
||||
* @note All proactive content is visible by default; pass an empty array to unsuppress all.
|
||||
*
|
||||
* @param types An array of content type strings to suppress, e.g. `[IntercomPresentContentType.Carousel, IntercomPresentContentType.Survey]`.
|
||||
*/
|
||||
@Cordova()
|
||||
suppressProactiveContent(types: IntercomPresentContentType[]): Promise<void> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide all Intercom windows that are currently displayed.
|
||||
* This will hide the Messenger, Help Center, Articles, and in-product messages (eg. Mobile Carousels, chats, and posts).
|
||||
@@ -386,7 +375,8 @@ export enum IntercomPresentContentType {
|
||||
}
|
||||
|
||||
export type IntercomPresentContent =
|
||||
{ id: string; type: IntercomPresentContentType } | { ids: string[]; type: IntercomPresentContentType };
|
||||
| { id: string; type: IntercomPresentContentType }
|
||||
| { ids: string[]; type: IntercomPresentContentType };
|
||||
|
||||
export interface IntercomUserAttributes {
|
||||
email?: string;
|
||||
|
||||
Reference in New Issue
Block a user