初始化配置项API
初始化 SDK 时配置项 API ,可以控制 SDK 的采集上报流程,另外还可接收来自 GIO 的 callback。
import android.app.Application;
import com.growingio.android.sdk.collection.Configuration;
import com.growingio.android.sdk.collection.GrowingIO;
import com.growingio.android.sdk.deeplink.DeeplinkCallback;
import java.util.Map;
public class TestApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
GrowingIO.startWithConfiguration(this, new Configuration()
.disableCellularImp()
.disableImageViewCollection(false)
.setBulkSize(100)
.setCellularDataLimit(1000)
.setChannel("渠道名")
.setDebugMode(true)
.setDeeplinkCallback(new DeeplinkCallback() {
@Override
public void onReceive(Map<String, String> params, int error, long appAwakePassedTime) {
}
}).setDiagnose(false)
.setDisabled(false)
.setDisableImpression(false)
.setFlushInterval(1000)
.setMutiprocess(true)
.setSampling(0.34)
.setSessionInterval(23000)
.setTestMode(true)
.setThrottle(false)
.setTrackWebView(true)
.supportMultiProcessCircle(true)
.trackAllFragments()
.setImeiEnable(true)
.setGoogleAdIdEnable(true)
.setAndroidIdEnable(true)
.setOAIDEnable(true));
}
}基础配置API
SDK功能API
数据采集发送API
Last updated
Was this helpful?