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 | |
|---|---|---|---|
|
|
b2f3be0163 |
@@ -3,27 +3,10 @@ import { AwesomeCordovaNativePlugin, Cordova, Plugin } from '@awesome-cordova-pl
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
export interface InitializeConfig {
|
||||
/**
|
||||
* @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;
|
||||
hasUserConsentValue: boolean;
|
||||
isAgeRestrictedUserValue: boolean;
|
||||
isDoNotSellValue: boolean;
|
||||
isTabletValue: boolean;
|
||||
}
|
||||
|
||||
export interface AdInfo {
|
||||
@@ -34,11 +17,6 @@ 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',
|
||||
@@ -50,10 +28,6 @@ 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,
|
||||
@@ -106,22 +80,11 @@ 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;
|
||||
@@ -137,17 +100,11 @@ 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;
|
||||
@@ -173,11 +130,8 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {boolean} muted Whether ads should be muted.
|
||||
*/
|
||||
@Cordova()
|
||||
setMuted(muted: boolean): Promise<any> {
|
||||
setMuted(): Promise<boolean> {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -191,19 +145,6 @@ 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;
|
||||
@@ -226,11 +167,6 @@ 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;
|
||||
@@ -251,46 +187,6 @@ 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()
|
||||
@@ -308,11 +204,6 @@ 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;
|
||||
@@ -333,46 +224,6 @@ 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()
|
||||
@@ -380,14 +231,6 @@ 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;
|
||||
@@ -406,14 +249,6 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnInterstitialClickedEvent',
|
||||
})
|
||||
onInterstitialClicked(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnInterstitialLoadFailedEvent',
|
||||
@@ -453,14 +288,6 @@ 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;
|
||||
@@ -479,14 +306,6 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnRewardedAdClickedEvent',
|
||||
})
|
||||
onRewardedAdClicked(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnRewardedAdLoadFailedEvent',
|
||||
@@ -513,17 +332,9 @@ export class Applovin extends AwesomeCordovaNativePlugin {
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnRewardedAdFailedToDisplayEvent',
|
||||
event: 'OnRewardedAdAdFailedToDisplayEvent',
|
||||
})
|
||||
onRewardedAdAdFailedToDisplay(): Observable<AdInfo> {
|
||||
return;
|
||||
}
|
||||
|
||||
@Cordova({
|
||||
eventObservable: true,
|
||||
event: 'OnRewardedAdReceivedRewardEvent',
|
||||
})
|
||||
onRewardedAdReceivedReward(): Observable<AdRewardInfo> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,16 @@ export interface MediaFileData {
|
||||
}
|
||||
|
||||
export interface CaptureError {
|
||||
code: string;
|
||||
/**
|
||||
* One of the `CaptureError` codes:
|
||||
* - `0` - CAPTURE_INTERNAL_ERR: Camera or microphone failed to capture image or sound.
|
||||
* - `1` - CAPTURE_APPLICATION_BUSY: Camera application or audio capture application is currently serving other capture request.
|
||||
* - `2` - CAPTURE_INVALID_ARGUMENT: Invalid use of the API (e.g. limit parameter has value less than one).
|
||||
* - `3` - CAPTURE_NO_MEDIA_FILES: User exited camera application or audio capture application before capturing anything.
|
||||
* - `4` - CAPTURE_PERMISSION_DENIED: User denied permissions required to perform the capture request.
|
||||
* - `20` - CAPTURE_NOT_SUPPORTED: The requested capture operation is not supported.
|
||||
*/
|
||||
code: number;
|
||||
}
|
||||
|
||||
export interface CaptureAudioOptions {
|
||||
|
||||
Reference in New Issue
Block a user