react-native-kochava-measurement
Version:
A lightweight and easy to integrate SDK, providing first-class integration with Kochava’s installation attribution and analytics platform.
88 lines (87 loc) • 3.37 kB
TypeScript
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: Record<string, any>;
_durationMeasurementEnabled: boolean;
_durationStart: number;
_bucketConfig?: number[];
kochava: any;
constructor(kochava: any, eventName: KochavaMeasurementEventType | string);
send(): void;
_calculateBucket(duration: number): string;
enableDurationMeasurement(enable?: boolean): void;
registerDurationBuckets(bucketConfig: number[]): 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;
buildEventWithEventType(eventType: KochavaMeasurementEventType): KochavaMeasurementEvent;
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;
}