All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.com.wisetrack.sdk.IActivityHandler.kt Maven / Gradle / Ivy

There is a newer version: 1.5.3
Show newest version
package com.wisetrack.sdk

import android.content.Context
import android.net.Uri
import org.json.JSONObject

/**
@author hamed (@hamed-hsb)
 * @since 04th October 2021
 */

interface IActivityHandler {
    fun init(wiseTrackConfig: WiseTrackConfig)

    fun onResume()

    fun onPause()

    fun trackEvent(event: WiseTrackEvent)

    fun finishedTrackingActivity(responseData: ResponseData)

    fun setEnabled(enabled: Boolean)

    fun isEnabled(): Boolean

    fun readOpenUrl(url: Uri, clickTime: Long)

    fun updateAttributionI(attribution: WiseTrackAttribution?): Boolean

    fun launchEventResponseTasks(eventResponseData: EventResponseData)

    fun launchSessionResponseTasks(sessionResponseData: SessionResponseData)

    fun launchSdkClickResponseTasks(sdkClickResponseData: SdkClickResponseData)

    fun launchAttributionResponseTasks(attributionResponseData: AttributionResponseData)

    fun sendRefTagReferrer()

    fun sendPreinstallReferrer()

    fun sendInstallReferrer(referrerDetails: ReferrerDetails, referrerApi: String)

    fun setOfflineMode(enabled: Boolean)

    fun setAskingAttribution(askingAttribution: Boolean)

    fun sendFirstPackages()

    fun addSessionCallbackParameter(key: String?, value: String?)

    fun addSessionPartnerParameter(key: String?, value: String?)

    fun removeSessionCallbackParameter(key: String?)

    fun removeSessionPartnerParameter(key: String?)

    fun resetSessionCallbackParameters()

    fun resetSessionPartnerParameters()

    fun teardown()

    fun setPushToken(token: String, preSaved: Boolean)

    fun gdprForgetMe()

    fun disableThirdPartySharing()

    fun trackThirdPartySharing(wiseTrackThirdPartySharing: WiseTrackThirdPartySharing)

    fun trackMeasurementConsent(consentMeasurement: Boolean)

    fun trackAdRevenue(source: String, adRevenueJson: JSONObject)

    fun trackAdRevenue(wiseTrackAdRevenue: WiseTrackAdRevenue)

    fun trackPlayStoreSubscription(wiseTrackPlayStoreSubscription: WiseTrackPlayStoreSubscription)

    fun gotOptOutResponse()

    fun getContext(): Context

    fun getAdid(): String?

    fun getAttribution(): WiseTrackAttribution?

    fun getWiseTrackConfig(): WiseTrackConfig

    fun getDeviceInfo(): DeviceInfo

    fun getActivityState(): ActivityState?

    fun getSessionParameters(): SessionParameters

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy