summaryrefslogtreecommitdiffstats
path: root/mobile/android/thirdparty/com/adjust/sdk/IActivityHandler.java
blob: 10b92205dad3bef5fd9e090c69e55583b1c6c588 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.adjust.sdk;

import android.net.Uri;

import org.json.JSONObject;

/**
 * Created by pfms on 15/12/14.
 */
public interface IActivityHandler {
    public void init(AdjustConfig config);

    public void trackSubsessionStart();

    public void trackSubsessionEnd();

    public void trackEvent(AdjustEvent event);

    public void finishedTrackingActivity(JSONObject jsonResponse);

    public void setEnabled(boolean enabled);

    public boolean isEnabled();

    public void readOpenUrl(Uri url, long clickTime);

    public boolean tryUpdateAttribution(AdjustAttribution attribution);

    public void sendReferrer(String referrer, long clickTime);

    public void setOfflineMode(boolean enabled);

    public void setAskingAttribution(boolean askingAttribution);

    public ActivityPackage getAttributionPackage();
}