react-native-kochava-measurement
Version:
A lightweight and easy to integrate SDK, providing first-class integration with Kochava’s installation attribution and analytics platform.
178 lines • 7.55 kB
TypeScript
import type { KochavaMeasurementApi } from './KochavaMeasurementApi';
export declare enum KochavaMeasurementLogLevel {
None = "none",
Error = "error",
Warn = "warn",
Info = "info",
Debug = "debug",
Trace = "trace"
}
export declare enum KochavaMeasurementEventType {
Achievement = "Achievement",
AddToCart = "Add to Cart",
AddToWishList = "Add to Wish List",
CheckoutStart = "Checkout Start",
LevelComplete = "Level Complete",
Purchase = "Purchase",
Rating = "Rating",
RegistrationComplete = "Registration Complete",
Search = "Search",
TutorialComplete = "Tutorial Complete",
View = "View",
AdView = "Ad View",
PushReceived = "Push Received",
PushOpened = "Push Opened",
ConsentGranted = "Consent Granted",
Deeplink = "_Deeplink",
AdClick = "Ad Click",
StartTrial = "Start Trial",
Subscribe = "Subscribe"
}
export declare class KochavaMeasurementEvent {
_eventName: string;
_eventData: any;
_appleAppStoreReceiptBase64String: string | null;
_androidGooglePlayReceiptData: string | null;
_androidGooglePlayReceiptSignature: string | null;
constructor(eventName: string);
send(): void;
setCustomStringValue(key: string, value: string): void;
setCustomBoolValue(key: string, value: boolean): void;
setCustomNumberValue(key: string, value: number): void;
_setCustomDictionaryValue(key: string, value: object): void;
setAndroidGooglePlayReceipt(data: string, signature: string): void;
setiOSAppStoreReceipt(base64String: string): void;
setAppleAppStoreReceipt(base64String: string): void;
setAction(value: string): void;
setBackground(value: boolean): void;
setCheckoutAsGuest(value: string): void;
setCompleted(value: boolean): void;
setContentId(value: string): void;
setContentType(value: string): void;
setCurrency(value: string): void;
setDate(value: string): void;
setDescription(value: string): void;
setDestination(value: string): void;
setDuration(value: number): void;
setEndDate(value: string): void;
setItemAddedFrom(value: string): void;
setLevel(value: string): void;
setMaxRatingValue(value: number): void;
setName(value: string): void;
setOrderId(value: string): void;
setOrigin(value: string): void;
setPayload(value: object): void;
setPrice(value: number): void;
setQuantity(value: number): void;
setRatingValue(value: number): void;
setReceiptId(value: string): void;
setReferralFrom(value: string): void;
setRegistrationMethod(value: string): void;
setResults(value: string): void;
setScore(value: string): void;
setSearchTerm(value: string): void;
setSource(value: string): void;
setSpatialX(value: number): void;
setSpatialY(value: number): void;
setSpatialZ(value: number): void;
setStartDate(value: string): void;
setSuccess(value: string): void;
setUri(value: string): void;
setUserId(value: string): void;
setUserName(value: string): void;
setValidated(value: string): void;
setAdCampaignId(value: string): void;
setAdCampaignName(value: string): void;
setAdDeviceType(value: string): void;
setAdGroupId(value: string): void;
setAdGroupName(value: string): void;
setAdMediationName(value: string): void;
setAdNetworkName(value: string): void;
setAdPlacement(value: string): void;
setAdSize(value: string): void;
setAdType(value: string): void;
getData(): object;
}
export declare class KochavaMeasurementInstallAttribution {
retrieved: boolean;
raw: object;
attributed: boolean;
firstInstall: boolean;
constructor(data: {
[key: string]: any;
} | null);
}
export declare class KochavaMeasurementDeeplink {
destination: string;
raw: object;
constructor(data: {
[key: string]: any;
} | null);
}
export declare class KochavaMeasurementInit {
consentGdprApplies: boolean;
constructor(config: KochavaMeasurementConfig);
}
export declare class KochavaMeasurementConfig {
consentGdprApplies: boolean;
constructor(data: {
[key: string]: any;
} | null);
}
export type KochavaMeasurementInitCompletedListener = (init: KochavaMeasurementInit) => void;
export type KochavaMeasurementConfigCompletedListener = (config: KochavaMeasurementConfig) => void;
export declare class KochavaMeasurement {
static instance: KochavaMeasurement;
_api: KochavaMeasurementApi;
_startParameters: {
[key: string]: string;
};
executeAdvancedInstruction(name: string, value: string): void;
setLogLevel(logLevel: KochavaMeasurementLogLevel): void;
setSleep(enabled: boolean): void;
setAppLimitAdTracking(enabled: boolean): void;
registerCustomDeviceIdentifier(name: string, value: string | null): void;
registerCustomStringValue(name: string, value: string | null): void;
registerCustomBoolValue(name: string, value: boolean | null): void;
registerCustomNumberValue(name: string, value: number | null): void;
registerIdentityLink(name: string, value: string | null): void;
enableiOSAppClips(identifier: string): void;
enableAppleAppClips(identifier: string): void;
enableiOSAtt(): void;
enableAppleAtt(): void;
setiOSAttAuthorizationWaitTime(timeInterval: number): void;
setAppleAttAuthorizationWaitTime(timeInterval: number): void;
setiOSAttAuthorizationAutoRequest(enabled: boolean): void;
setAppleAttAuthorizationAutoRequest(enabled: boolean): void;
setAppleAttAuthorizationCustomPrompt(enabled: boolean): void;
appleAttAuthorizationCustomPromptDidComplete(): void;
registerPrivacyProfile(name: string, keys: string[]): void;
setPrivacyProfileEnabled(name: string, enabled: boolean): void;
setInitCompletedListener(initCompletedListener: KochavaMeasurementInitCompletedListener | null): void;
setConfigCompletedListener(configCompletedListener: KochavaMeasurementConfigCompletedListener | null): void;
setIntelligentConsentGranted(granted: boolean): void;
getStarted(): Promise<boolean>;
registerAndroidAppGuid(androidAppGuid: string): void;
registerIosAppGuid(appleAppGuid: string): void;
registerAppleAppGuid(appleAppGuid: string): void;
registerVegaAppGuid(vegaAppGuid: string): void;
registerPartnerName(partnerName: string): void;
start(): void;
shutdown(deleteData: boolean): void;
retrieveInstallId(): Promise<string>;
retrieveInstallAttribution(): Promise<KochavaMeasurementInstallAttribution>;
processDeeplink(path: string): Promise<KochavaMeasurementDeeplink>;
processDeeplinkWithOverrideTimeout(path: string, timeout: number): Promise<KochavaMeasurementDeeplink>;
registerDeeplinkWrapperDomain(domain: string): void;
registerDefaultEventStringParameter(name: string, value: string | null): void;
registerDefaultEventBoolParameter(name: string, value: boolean | null): void;
registerDefaultEventNumberParameter(name: string, value: number | null): void;
registerDefaultEventUserId(value: string | null): void;
sendEvent(name: string): void;
sendEventWithString(name: string, data: string): void;
sendEventWithDictionary(name: string, data: object): void;
sendEventWithEvent(event: KochavaMeasurementEvent): void;
buildEventWithEventType(type: KochavaMeasurementEventType): KochavaMeasurementEvent;
buildEventWithEventName(name: string): KochavaMeasurementEvent;
}
//# sourceMappingURL=index.d.ts.map